Use annotated tags to release commits instead of lightweight tags

This commit is contained in:
Jonhnny Weslley 2010-11-24 10:16:53 -03:00
parent a14e95a727
commit 54fd21a755

View file

@ -1,12 +1,10 @@
#!/bin/sh
if test $# -gt 0; then
echo "... releasing $1"
git commit -a -m "Release $1" \
&& git tag "$1" \
&& git push \
&& git push --tags \
&& echo "... complete"
else
echo "tag required" && exit 1
fi
tagname=$1
test -z $tagname && echo "tag required" && exit 1
echo "... releasing $1"
git tag -a "$1" -m "Release $1" \
&& git push --tags \
&& echo "... complete"