mirror of
https://github.com/tj/git-extras.git
synced 2026-09-10 15:36:21 -04:00
Use annotated tags to release commits instead of lightweight tags
This commit is contained in:
parent
a14e95a727
commit
54fd21a755
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in a new issue