Skip to content

Commit

Permalink
[WIN] more robust git rev extraction - use plumbing instead of porcelain
Browse files Browse the repository at this point in the history
  • Loading branch information
CrystalP authored and CrystalP committed Jan 2, 2012
1 parent 56f993c commit d65399e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions project/Win32BuildSetup/extract_git_rev.bat
Expand Up @@ -30,12 +30,10 @@ GOTO :extract

:extract

FOR /F "tokens=1-4 delims=-" %%A IN ('"%GITEXE% log --summary -n 1 --date=short --pretty=format:"%%cd-%%h""') DO (
FOR /F "tokens=1-4 delims=-" %%A IN ('"%GITEXE% rev-list HEAD -n 1 --date=short --pretty=format:"%%cd-%%h""') DO (
SET GIT_REV=%%A%%B%%C-%%D
goto exitloop
)

:exitloop

echo %GIT_REV%

Expand Down

0 comments on commit d65399e

Please sign in to comment.