Skip to content

Commit 9f35cb1

Browse files
zoekt-mirror-gerrit: fix fetch for meta/config (#777)
The current configuration creates a conflict with default fetch config `+refs/heads/*:refs/heads/*`. The first fetch is ok but once a local "refs/heads/meta/config" exists fetch fails because 2 fetch rules match for local "refs/heads/meta/config" : "refs/meta/config" and "refs/heads/meta/config" Changing local ref name fixes the problem
1 parent 7c5b778 commit 9f35cb1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cmd/zoekt-mirror-gerrit/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ func addMetaConfigFetch(repoDir string) error {
285285

286286
rm := cfg.Remotes["origin"]
287287
if rm != nil {
288-
configRefSpec := config.RefSpec("+refs/meta/config:refs/heads/meta/config")
288+
configRefSpec := config.RefSpec("+refs/meta/config:refs/heads/meta-config")
289289
if !slices.Contains(rm.Fetch, configRefSpec) {
290290
rm.Fetch = append(rm.Fetch, configRefSpec)
291291
}

0 commit comments

Comments
 (0)