summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2009-12-07 14:38:10 -0500
committerJoey Hess <joey@gnu.kitenet.net>2009-12-07 14:38:10 -0500
commit0294fdfb5c50e5af22acc14407a2b69c79360e44 (patch)
tree19b96b48806f810ceeb46d9462a12a10d57a2f60
parent4fe1eb7ab542255eaa3d0266bc0437b49bacef4d (diff)
call git remote prune to drop stale tracking branches
-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;