Permalink
Browse files

Pass --always to git describe to ensure we always get a version

number. Hopefully fixes travis-ci. See #1287
  • Loading branch information...
1 parent e908b73 commit 35f230235290be2bb482acab986d7017c77ca208 @ridiculousfish ridiculousfish committed Feb 6, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 build_tools/git_version_gen.sh
View
2 build_tools/git_version_gen.sh
@@ -14,7 +14,7 @@ then
VN=$(cat version) || VN="$DEF_VER"
elif test -d .git -o -f .git && type git >/dev/null
then
- VN=$(git describe --dirty 2>/dev/null)
+ VN=$(git describe --always --dirty 2>/dev/null)
else
VN="$DEF_VER"
fi

0 comments on commit 35f2302

Please sign in to comment.