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:
parent
a2cab25e9e
commit
07229ef10d
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue