diff --git a/mirror.go b/mirror.go index 63cf824..31f78f9 100644 --- a/mirror.go +++ b/mirror.go @@ -12,7 +12,7 @@ func mirror(cfg config, r repo) (string, error) { outStr := "" if _, err := os.Stat(repoPath); err == nil { // Directory exists, update. - cmd := exec.Command("git", "remote", "update") + cmd := exec.Command("git", "remote", "update", "--prune") cmd.Dir = repoPath out, err := cmd.CombinedOutput() outStr = string(out)