Merge pull request #1497

ea58857 Fix version string by picking up unannotated tags (stoffu)
This commit is contained in:
luigi1111 2018-07-09 15:50:28 -05:00
commit 07499bb96a
No known key found for this signature in database
GPG key ID: F4ACA0183641E010

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"