From ef26ab5e46b53f3b648f1281f124a501b04729bf Mon Sep 17 00:00:00 2001 From: Guy Scharf Date: Sun, 2 Feb 2020 22:19:23 -0700 Subject: [PATCH] Fix, again, the "-plus" notation in Windows build process. --- oscar/update_gitinfo.bat | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/oscar/update_gitinfo.bat b/oscar/update_gitinfo.bat index e19b0baf..756f7590 100755 --- a/oscar/update_gitinfo.bat +++ b/oscar/update_gitinfo.bat @@ -9,8 +9,8 @@ if "%GIT_DIR%"=="" goto GitDone for /f %%i in ('git rev-parse --abbrev-ref HEAD') do set GIT_BRANCH=%%i if "%GIT_BRANCH%"=="HEAD" set GIT_BRANCH="" for /f %%i in ('git rev-parse --short HEAD') do set GIT_REVISION=%%i -for /f %%i in ('git diff-index --quiet HEAD --') do set GIT_INDEX=%%i -if "%GIT_INDEX%"!=="" ( +git diff-index --quiet HEAD -- +if %ERRORLEVEL% NEQ 0 ( set GIT_REVISION=%GIT_REVISION%-plus set GIT_TAG= goto GitDone