ref: a1740d9ad176ed3716b5c35cba6c47da733b789c
parent: a8fa0cb629f076f546748673378694b8416e6c53
author: Ron <[email protected]>
date: Wed Nov 27 23:18:45 EST 2013
Drop the use of --always to git-describe This is a partial revert of c435f06b308e52d7a5d2aad9eec98a1541832b47, since it didn't actually fix the original problem with shallow clones. It returns just a hash, not something we (currently) can extract as a version string in the form things are expecting.
--- a/update_version
+++ b/update_version
@@ -34,8 +34,7 @@
# -dirty from files that have been touched but are not actually altered in the
# working dir.
GIT_VERSION=$(cd "$SRCDIR" && git status > /dev/null 2>&1 \
- && git describe --tags --match 'v*' \
- --always --dirty 2> /dev/null)
+ && git describe --tags --match 'v*' --dirty 2> /dev/null)
GIT_VERSION=${GIT_VERSION#v}
if [ -n "$GIT_VERSION" ]; then
--- a/win32/genversion.bat
+++ b/win32/genversion.bat
@@ -2,7 +2,7 @@
setlocal enableextensions enabledelayedexpansion
-for /f %%v in ('git --git-dir="%~dp0..\.git" describe --tags --match "v*" --always') do set version=%%v
+for /f %%v in ('git --git-dir="%~dp0..\.git" describe --tags --match "v*"') do set version=%%v
if not "%version%"=="" goto :gotversion