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

Configure Feed

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

zoekt-indexserver: prune branches on fetch (#769)

issue: #768

+1 -1
+1 -1
cmd/zoekt-indexserver/main.go
··· 129 129 // fetchGitRepo runs git-fetch, and returns true if there was an 130 130 // update. 131 131 func fetchGitRepo(dir string) bool { 132 - cmd := exec.Command("git", "--git-dir", dir, "fetch", "origin") 132 + cmd := exec.Command("git", "--git-dir", dir, "fetch", "origin", "--prune") 133 133 134 134 output, err := cmd.CombinedOutput() 135 135 if err != nil {