From 24ff726ab81724ea776386485ebe7db0d81534d9 Mon Sep 17 00:00:00 2001 From: Steven Myint Date: Sat, 26 Oct 2013 17:13:00 -0700 Subject: [PATCH] Use "--prune" when fetching This is needed to make sure that we don't try to delete a remote branch that no longer exists. This fixes arc90/git-sweep#18. --- git-sweep | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git-sweep b/git-sweep index 6765601..f80c4ba 100755 --- a/git-sweep +++ b/git-sweep @@ -66,7 +66,7 @@ def git(arguments, path): def fetch(remote, path): """Download objects and refs from remote repository.""" - git(['fetch', remote], path=path) + git(['fetch', '--prune', remote], path=path) def remote_heads(remote, path):