summaryrefslogtreecommitdiff
path: root/win32
diff options
context:
space:
mode:
authorRalph Giles <giles@mozilla.com>2013-10-01 13:05:33 -0700
committerRalph Giles <giles@mozilla.com>2013-10-01 13:05:33 -0700
commitc435f06b308e52d7a5d2aad9eec98a1541832b47 (patch)
tree5f7c9892f8e07d7a4faae48923aef8300434c5ef /win32
parenta32fa319d3e300d80df648e7edb2157b599003ab (diff)
downloadopus-c435f06b308e52d7a5d2aad9eec98a1541832b47.tar.gz
Pass --always to git describe.
This generates a useful version string even for --depth=1 checkouts. The option was added in git v1.6.6.
Diffstat (limited to 'win32')
-rw-r--r--win32/genversion.bat4
1 files changed, 2 insertions, 2 deletions
diff --git a/win32/genversion.bat b/win32/genversion.bat
index 82885be7..b493cd47 100644
--- 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*"') do set version=%%v
+for /f %%v in ('git --git-dir="%~dp0..\.git" describe --tags --match "v*" --always --dirty') do set version=%%v
if not "%version%"=="" goto :gotversion
@@ -43,4 +43,4 @@ copy /y "%1_temp" "%1"
:exit
-del "%1_temp" \ No newline at end of file
+del "%1_temp"