diff options
author | theuni <theuni-nospam-@xbmc.org> | 2011-03-21 14:52:15 -0400 |
---|---|---|
committer | theuni <theuni-nospam-@xbmc.org> | 2011-03-21 14:52:15 -0400 |
commit | 1996df56e4228e49bc8b7371a98ecb39c1390e6f (patch) | |
tree | 375e485839491d4df88f49bcf61cd08452f7e278 /project/Win32BuildSetup/extract_git_rev.bat | |
parent | e6dc213359a202708e165ef52af47c0e1920f976 (diff) |
changed: use supported '-n 1' param instead for determining revision string.
The '-1' param works, but only because it works at some deeper level,
and is much more likely to break.
Diffstat (limited to 'project/Win32BuildSetup/extract_git_rev.bat')
-rw-r--r-- | project/Win32BuildSetup/extract_git_rev.bat | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/project/Win32BuildSetup/extract_git_rev.bat b/project/Win32BuildSetup/extract_git_rev.bat index b9cfae2072..84366f1413 100644 --- a/project/Win32BuildSetup/extract_git_rev.bat +++ b/project/Win32BuildSetup/extract_git_rev.bat @@ -24,7 +24,7 @@ GOTO :done :extract -FOR /F "tokens=1-4 delims=-" %%A IN ('"%GITEXE% --no-pager log --abbrev=7 -1 --date=short --pretty=format:"%%cd-%%h""') DO SET GIT_REV=%%A%%B%%C-%%D +FOR /F "tokens=1-4 delims=-" %%A IN ('"%GITEXE% --no-pager log --abbrev=7 -n 1 --date=short --pretty=format:"%%cd-%%h""') DO SET GIT_REV=%%A%%B%%C-%%D @echo %GIT_REV% :done |