Skip to content

Commit

Permalink
zoekt-indexserver: prune branches on fetch (#769)
Browse files Browse the repository at this point in the history
issue: #768
  • Loading branch information
xavier-calland authored Apr 29, 2024
1 parent 6df0554 commit 5ecbc14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/zoekt-indexserver/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ func periodicFetch(repoDir, indexDir string, opts *Options, pendingRepos chan<-
// fetchGitRepo runs git-fetch, and returns true if there was an
// update.
func fetchGitRepo(dir string) bool {
cmd := exec.Command("git", "--git-dir", dir, "fetch", "origin")
cmd := exec.Command("git", "--git-dir", dir, "fetch", "origin", "--prune")

output, err := cmd.CombinedOutput()
if err != nil {
Expand Down

0 comments on commit 5ecbc14

Please sign in to comment.