Commit de3c03db authored by Vitaly Lipatov's avatar Vitaly Lipatov

gpush: push last tag also

parent d72af9a8
...@@ -70,7 +70,16 @@ push_to_remote() ...@@ -70,7 +70,16 @@ push_to_remote()
echo "** Push $TEXTBRANCH from $PROJECTNAME.git to $GHOST $TEXTTAG" echo "** Push $TEXTBRANCH from $PROJECTNAME.git to $GHOST $TEXTTAG"
docmd git push $PUSHALL $PUSHFORCE $GHOST $CURRENTBRANCH || return docmd git push $PUSHALL $PUSHFORCE $GHOST $CURRENTBRANCH || return
[ -z "$TAGSALL" ] || docmd git push --tags $GHOST $CURRENTBRANCH if [ -n "$TAGSALL" ] ; then
docmd git push --tags $GHOST $CURRENTBRANCH
else
local LASTTAG=$(git describe --abbrev=0 --tags)
# check if the last tag put on the last commit
if [ "$(git rev-parse HEAD)" = "$(git rev-parse $LASTTAG^0)" ] ; then
echo "*** Push last tag $LASTTAG"
docmd git push $PUSHFORCE $GHOST $LASTTAG
fi
fi
} }
tune_girarlist() tune_girarlist()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment