aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xgitremotes3
1 files changed, 3 insertions, 0 deletions
diff --git a/gitremotes b/gitremotes
index e2468814b..d49cf2d9e 100755
--- a/gitremotes
+++ b/gitremotes
@@ -28,6 +28,9 @@ while (<IN>) {
print "$remote failed\n";
}
$error |= $r;
+
+ # drop stale tracking branches
+ system("git", "remote", "prune", $remote);
}
}
close IN;