mirror of
https://github.com/simh/simh.git
synced 2026-01-26 04:01:38 +00:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user