fork of https://github.com/sourcegraph/zoekt
0

Configure Feed

Select the types of activity you want to include in your feed.

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 -1
+1 -1
cmd/zoekt-mirror-gerrit/main.go
··· 285 285 286 286 rm := cfg.Remotes["origin"] 287 287 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") 289 289 if !slices.Contains(rm.Fetch, configRefSpec) { 290 290 rm.Fetch = append(rm.Fetch, configRefSpec) 291 291 }