Skip to content

Commit

Permalink
added --tag to fix git build version errors
Browse files Browse the repository at this point in the history
  • Loading branch information
faetos committed Jul 2, 2018
1 parent 6ca8847 commit b72e858
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion share/genbuild.sh
Expand Up @@ -21,7 +21,7 @@ if [ -e "$(which git 2>/dev/null)" -a "$(git rev-parse --is-inside-work-tree 2>/
git diff >/dev/null 2>/dev/null

# if latest commit is tagged and not dirty, then override using the tag name
RAWDESC=$(git describe --abbrev=0 2>/dev/null)
RAWDESC=$(git describe --abbrev=0 --tags 2>/dev/null)
if [ "$(git rev-parse HEAD)" = "$(git rev-list -1 $RAWDESC)" ]; then
git diff-index --quiet HEAD -- && DESC=$RAWDESC
fi
Expand Down

0 comments on commit b72e858

Please sign in to comment.