From 0071a44f9e46f8e69f0fd0d0b1a3e3e9e58f6315 Mon Sep 17 00:00:00 2001 From: Guy Scharf Date: Fri, 20 Mar 2020 10:17:28 -0700 Subject: [PATCH] Correct version identification in Windows builds. --- oscar/update_gitinfo.bat | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oscar/update_gitinfo.bat b/oscar/update_gitinfo.bat index 5e695421..4b05e755 100755 --- a/oscar/update_gitinfo.bat +++ b/oscar/update_gitinfo.bat @@ -12,7 +12,7 @@ git rev-parse --git-dir >nul 2>&1 if errorlevel 1 goto GitFail for /f %%i in ('git rev-parse --abbrev-ref HEAD') do set GIT_BRANCH=%%i - if "%GIT_BRANCH%"=="HEAD" set GIT_BRANCH="" + if "%GIT_BRANCH%"=="HEAD" set GIT_BRANCH= for /f %%i in ('git rev-parse --short HEAD') do set GIT_REVISION=%%i git diff-index --quiet HEAD --