aboutsummaryrefslogtreecommitdiff
path: root/project/Win32BuildSetup/extract_git_rev.bat
diff options
context:
space:
mode:
authorCrystalP <CrystalP@xbmc.org>2012-01-02 14:24:39 -0500
committerCrystalP <CrystalP@xbmc.org>2012-01-02 14:24:39 -0500
commitd65399e68541dcd7d7e2287bd631667aa17f65cd (patch)
tree376f87a9de1ed2eed1afa592d1e2924b7f836e1a /project/Win32BuildSetup/extract_git_rev.bat
parent56f993c9b62559296a2453a7ee9cc885d25b8f16 (diff)
[WIN] more robust git rev extraction - use plumbing instead of porcelain
Diffstat (limited to 'project/Win32BuildSetup/extract_git_rev.bat')
-rw-r--r--project/Win32BuildSetup/extract_git_rev.bat4
1 files changed, 1 insertions, 3 deletions
diff --git a/project/Win32BuildSetup/extract_git_rev.bat b/project/Win32BuildSetup/extract_git_rev.bat
index bdf1aba66c..66e0aabced 100644
--- a/project/Win32BuildSetup/extract_git_rev.bat
+++ b/project/Win32BuildSetup/extract_git_rev.bat
@@ -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%