Visual Studio Projects: Properly populate .git-commit-id after git clone

This only happens if git is installed locally and available in the current
path when Visual Studio executes.  Whether git is in the path is an
installation option when git for Windows is installed.

Otherwise, proper results should be available after subsequent
activity on the local repository.  Any build will install the git hooks
that properly populate .git-commit-id when any changes are made
to the local repo.
This commit is contained in:
Mark Pizzolato 2018-03-19 19:49:42 -07:00
parent a2cab25e9e
commit 07229ef10d

View file

@ -267,7 +267,7 @@ copy /y git-hooks\post* ..\.git\hooks\
call :WhereInPath git.exe > NUL 2>&1
if %ERRORLEVEL% neq 0 goto _done_hooks
pushd ..
git log -1 --pretty="SIM_GIT_COMMIT_ID %H%nSIM_GIT_COMMIT_TIME %aI" >.git-commit-id
git log -1 --pretty="SIM_GIT_COMMIT_ID %%H%%nSIM_GIT_COMMIT_TIME %%aI" >.git-commit-id
popd
:_done_hooks