Commit 3642c546 authored by Vitaly Lipatov's avatar Vitaly Lipatov

git: check if the last tag is empty

parent 3d57fc88
......@@ -110,6 +110,7 @@ is_last_commit_tag()
{
local TAG=$1
test -n "$TAG" || TAG=$(get_last_tag)
[ -n "$TAG" ] || return
# check if the tag put on the last commit
[ "$(git rev-parse HEAD)" = "$(git rev-parse $TAG^0)" ]
}
......
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