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

Configure Feed

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

zoekt-indexserver: handle gerrit-mirror RepoNameFormat config (#772)

+5 -1
+5 -1
cmd/zoekt-indexserver/config.go
··· 51 51 Active bool 52 52 NoArchived bool 53 53 GerritFetchMetaConfig bool 54 + GerritRepoNameFormat string 54 55 } 55 56 56 57 func randomize(entries []ConfigEntry) []ConfigEntry { ··· 260 261 if c.Active { 261 262 cmd.Args = append(cmd.Args, "-active") 262 263 } 263 - if c.GerritFetchMetaConfig { 264 + if c.GerritFetchMetaConfig { 264 265 cmd.Args = append(cmd.Args, "-fetch-meta-config") 266 + } 267 + if c.GerritRepoNameFormat != "" { 268 + cmd.Args = append(cmd.Args, "-repo-name-format", c.GerritRepoNameFormat) 265 269 } 266 270 cmd.Args = append(cmd.Args, c.GerritApiURL) 267 271 } else {