Skip to content

Commit

Permalink
zoekt-mirror-gerrit: fix issue when anonymous http is disabled on Gerrit
Browse files Browse the repository at this point in the history
Change-Id: I6f3d4fd35241bc33ece1f5baad191606ff94b5fd
  • Loading branch information
denis.fortin committed Nov 30, 2021
1 parent 56b87f5 commit 1e59c33
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/zoekt-mirror-gerrit/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,9 @@ func main() {

var projectURL string
for _, s := range []string{"http", "anonymous http"} {
projectURL = info.Download.Schemes[s].URL
if projectURL == "" {
projectURL = info.Download.Schemes[s].URL
}
}
if projectURL == "" {
log.Fatalf("project URL is empty, got Schemes %#v", info.Download.Schemes)
Expand Down

0 comments on commit 1e59c33

Please sign in to comment.