From a1740d9ad176ed3716b5c35cba6c47da733b789c Mon Sep 17 00:00:00 2001 From: Ron Date: Thu, 28 Nov 2013 04:18:45 +1030 Subject: 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. --- win32/genversion.bat | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'win32') diff --git a/win32/genversion.bat b/win32/genversion.bat index e8ebb026..a9b9353a 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*" --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 -- cgit v1.2.3