fixed incorrect argument passing and added pushing to remote

This commit is contained in:
Camille Reynders 2012-05-03 14:23:07 +02:00
parent cfb0d15aad
commit b91534b234

3
bin/git-rename-tag Normal file → Executable file
View file

@ -4,6 +4,7 @@ new=$2
test -z $old && echo "old tag name required." 1>&2 && exit 1
test -z $new && echo "new tag name required." 1>&2 && exit 1
git tag $old $new
git tag $new $old
git tag -d $old
git push origin $new
git push origin :refs/tag/$old