Skip to content

Commit

Permalink
Use "--prune" when fetching
Browse files Browse the repository at this point in the history
This is needed to make sure that we don't try to delete a remote branch
that no longer exists. This fixes arc90#18.
  • Loading branch information
myint committed Oct 27, 2013
1 parent 760d909 commit 24ff726
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion git-sweep
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 24ff726

Please sign in to comment.