WINDOWS-BUILD: Fix to properly get/generate the .git-commit-id file on a newly cloned repo
This commit is contained in:
parent
26cf38804b
commit
7c9e33663c
1 changed files with 1 additions and 1 deletions
|
@ -72,7 +72,7 @@ if not exist ..\.git\hooks\post-commit copy git-hooks\post* ..\.git\hooks\ > NUL
|
||||||
pushd ..
|
pushd ..
|
||||||
git checkout -q master
|
git checkout -q master
|
||||||
git fetch -q origin master
|
git fetch -q origin master
|
||||||
git log -1 --pretty="%H" >.git-commit-id
|
git log -1 "--pretty=%%H" >.git-commit-id
|
||||||
popd
|
popd
|
||||||
for /F %%i in (..\.git-commit-id) do set GIT_COMMIT_ID=%%i
|
for /F %%i in (..\.git-commit-id) do set GIT_COMMIT_ID=%%i
|
||||||
for /F "tokens=3 delims=/" %%i in ("%DATE%") do set D_YYYY=%%i
|
for /F "tokens=3 delims=/" %%i in ("%DATE%") do set D_YYYY=%%i
|
||||||
|
|
Loading…
Add table
Reference in a new issue