diff options
author | CrystalP <CrystalP@xbmc.org> | 2012-01-02 14:24:39 -0500 |
---|---|---|
committer | CrystalP <CrystalP@xbmc.org> | 2012-01-02 14:24:39 -0500 |
commit | d65399e68541dcd7d7e2287bd631667aa17f65cd (patch) | |
tree | 376f87a9de1ed2eed1afa592d1e2924b7f836e1a /project/Win32BuildSetup/extract_git_rev.bat | |
parent | 56f993c9b62559296a2453a7ee9cc885d25b8f16 (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.bat | 4 |
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% |