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

number. Hopefully fixes travis-ci. See #1287
This commit is contained in:
ridiculousfish 2014-02-05 16:20:09 -08:00
parent e908b731ab
commit 35f2302352

View file

@ -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