Visual Studio Projects: Properly capture git commit time into .git-commit-id.h

This commit is contained in:
Mark Pizzolato 2018-08-07 20:47:46 -07:00
parent 0d9f195f1c
commit 5a343cefbb

View file

@ -245,7 +245,7 @@ if exist ..\.git-commit-id for /F "usebackq tokens=2" %%i in (`findstr /C:SIM_GI
if "%ACTUAL_GIT_COMMIT_ID%" neq "%GIT_COMMIT_ID%" move /Y %_GIT_COMMIT_ID_TEMP% ..\.git-commit-id
if "%ACTUAL_GIT_COMMIT_ID%" equ "%GIT_COMMIT_ID%" del %_GIT_COMMIT_ID_TEMP%
SET GIT_COMMIT_ID=%ACTUAL_GIT_COMMIT_ID%
SET SIM_GIT_COMMIT_TIME=%ACTUAL_SIM_GIT_COMMIT_TIME%
SET GIT_COMMIT_TIME=%ACTUAL_GIT_COMMIT_TIME%
SET _GIT_COMMIT_ID_TEMP=
SET ACTUAL_GIT_COMMIT_ID=
SET ACTUAL_GIT_COMMIT_TIME=