Commit fb37c6b9 authored by Vitaly Lipatov's avatar Vitaly Lipatov

silence get_last_tag

parent f75b103a
...@@ -74,9 +74,11 @@ push_to_remote() ...@@ -74,9 +74,11 @@ push_to_remote()
docmd git push --tags $GHOST $CURRENTBRANCH docmd git push --tags $GHOST $CURRENTBRANCH
else else
if is_last_commit_tag ; then if is_last_commit_tag ; then
local LASTTAG=$(get_last_tag) local LASTTAG=$(get_last_tag)
echo "*** Push last tag $LASTTAG" if [ -n "$LASTTAG" ] ; then
docmd git push $PUSHFORCE $GHOST $LASTTAG echo "*** Push last tag $LASTTAG"
docmd git push $PUSHFORCE $GHOST $LASTTAG
fi
fi fi
fi fi
} }
......
...@@ -102,7 +102,7 @@ git_commit_ignore_nothing() ...@@ -102,7 +102,7 @@ git_commit_ignore_nothing()
get_last_tag() get_last_tag()
{ {
git describe --abbrev=0 --tags git describe --abbrev=0 --tags 2>/dev/null
} }
# check if tag is last commit tag (put on the last commit). if tag is missed, check with the last tag in repo # check if tag is last commit tag (put on the last commit). if tag is missed, check with the last tag in repo
......
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