fix delete-branch to work with same-name tags

when there's a tag and a branch with the same name, git errors out with

`error: dst refspec MY_BRANCH matches more than one.`

git-delete-tag is not affected by this bug
This commit is contained in:
☃ pitr 2013-01-24 13:16:08 -05:00
parent e94413f729
commit a06d552933

View file

@ -4,4 +4,4 @@ branch=$1
test -z $branch && echo "branch required." 1>&2 && exit 1
git branch -D $branch
git branch -d -r origin/$branch
git push origin :$branch
git push origin :refs/heads/$branch