arc90 / git-sweep

A command-line tool that helps you clean up Git branches that have been merged into master.
MIT License
2.55k stars 125 forks source link

Returned with exit code 1 and no explanation on trying to delete #37

Open pratik60 opened 9 years ago

pratik60 commented 9 years ago

git-sweep cleanup --skip=master,release,staging --nofetch

Delete these branches? (y/n) y

deleting abctest'git push --porcelain origin :abctest' returned with exit code 1

What can I do to debug this further....any information I can provide?

dasilvacontin commented 9 years ago

+1

jayrmotta commented 9 years ago

+1

jameswomack commented 9 years ago

I'm also experiencing this on Stash.

jameswomack commented 9 years ago

The issue (for me) is that git-sweep is reporting branches in Stash that don't actually exist as such any longer (error: unable to delete 'CA-6487_divided-classes-removal': remote ref does not exist).

dominicbarnes commented 9 years ago

I'm running into this issue too, no real idea how to debug it at this point.

dominicbarnes commented 9 years ago

Never mind, if you prune your remotes (for example: git fetch origin -p), it fixes this error.