WINDOWS-BUILD: Fix to properly get/generate the .git-commit-id file on a newly cloned repo

This commit is contained in:
Mark Pizzolato 2014-09-04 14:28:31 -07:00
parent 26cf38804b
commit 7c9e33663c

View file

@ -72,7 +72,7 @@ if not exist ..\.git\hooks\post-commit copy git-hooks\post* ..\.git\hooks\ > NUL
pushd ..
git checkout -q master
git fetch -q origin master
git log -1 --pretty="%H" >.git-commit-id
git log -1 "--pretty=%%H" >.git-commit-id
popd
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