Skip to content

Commit

Permalink
prefix configuration parameter name with "Gerrit"
Browse files Browse the repository at this point in the history
  • Loading branch information
xavier-calland committed May 2, 2024
1 parent d829a33 commit e382642
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/zoekt-indexserver/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ type ConfigEntry struct {
ExcludeTopics []string
Active bool
NoArchived bool
RepoNameFormat string
GerritRepoNameFormat string
}

func randomize(entries []ConfigEntry) []ConfigEntry {
Expand Down Expand Up @@ -260,8 +260,8 @@ func executeMirror(cfg []ConfigEntry, repoDir string, pendingRepos chan<- string
if c.Active {
cmd.Args = append(cmd.Args, "-active")
}
if c.RepoNameFormat != "" {
cmd.Args = append(cmd.Args, "-repo-name-format", c.RepoNameFormat)
if c.GerritRepoNameFormat != "" {
cmd.Args = append(cmd.Args, "-repo-name-format", c.GerritRepoNameFormat)
}
cmd.Args = append(cmd.Args, c.GerritApiURL)
} else {
Expand Down

0 comments on commit e382642

Please sign in to comment.