Fix version string by picking up unannotated tags

This commit is contained in:
stoffu 2018-06-21 20:36:46 +09:00
parent d85f3eae7c
commit ea58857b43
No known key found for this signature in database
GPG key ID: 41DAB8343A9EC012

View file

@ -54,7 +54,7 @@ function get_tag()
VERSIONTAG="$COMMIT"
fi
# save tag name + commit if availible
TAGNAME=$(git describe | sed -e 's/[\t ]*//')
TAGNAME=$(git describe --tags | sed -e 's/[\t ]*//')
if test -z "$TAGNAME"
then
TAGNAME="$VERSIONTAG"