diff options
author | Joey Hess <joey@gnu.kitenet.net> | 2009-12-07 14:38:10 -0500 |
---|---|---|
committer | Joey Hess <joey@gnu.kitenet.net> | 2009-12-07 14:38:10 -0500 |
commit | 0294fdfb5c50e5af22acc14407a2b69c79360e44 (patch) | |
tree | 19b96b48806f810ceeb46d9462a12a10d57a2f60 /gitremotes | |
parent | 4fe1eb7ab542255eaa3d0266bc0437b49bacef4d (diff) | |
download | ikiwiki-0294fdfb5c50e5af22acc14407a2b69c79360e44.tar ikiwiki-0294fdfb5c50e5af22acc14407a2b69c79360e44.tar.gz |
call git remote prune to drop stale tracking branches
Diffstat (limited to 'gitremotes')
-rwxr-xr-x | gitremotes | 3 |
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; |