Use -d to avoid deleting an unmerged branch by accident

This commit is contained in:
Aggelos Orfanakos 2010-08-27 00:39:44 +03:00 committed by Tj Holowaychuk
parent 468ceaa511
commit b8c9f0e423

View file

@ -1,5 +1,5 @@
#!/bin/sh
test -z $1 && echo "branch required." && exit 1
git branch -D $1
git push origin :$1
git branch -d $@
git push origin :$1