call git remote prune to drop stale tracking branches
authorJoey Hess <joey@gnu.kitenet.net>
Mon, 7 Dec 2009 19:38:10 +0000 (14:38 -0500)
committerJoey Hess <joey@gnu.kitenet.net>
Mon, 7 Dec 2009 19:38:10 +0000 (14:38 -0500)
gitremotes

index e2468814b01155f99ae7d7716851eb523e3e6220..d49cf2d9eff41cc001d9b5c6145b1d9a20e69050 100755 (executable)
@@ -28,6 +28,9 @@ while (<IN>) {
                        print "$remote failed\n";
                }
                $error |= $r;
+               
+               # drop stale tracking branches
+               system("git", "remote", "prune", $remote);
        }
 }
 close IN;