aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCrystalP <CrystalP@xbmc.org>2012-01-01 20:18:43 -0500
committerCrystalP <CrystalP@xbmc.org>2012-01-01 20:29:46 -0500
commit779099970819fa0873861184039aa32adbafba1a (patch)
tree05607f3adae783d4f5f0714df931c6a36dd7fe75
parent9a7aa627cc17495a615a74bf835055e7cd14a967 (diff)
[WIN] fix git command detection for recent msysgit
-rw-r--r--project/Win32BuildSetup/extract_git_rev.bat10
1 files changed, 9 insertions, 1 deletions
diff --git a/project/Win32BuildSetup/extract_git_rev.bat b/project/Win32BuildSetup/extract_git_rev.bat
index fedeb4b8ff..f4550848c0 100644
--- a/project/Win32BuildSetup/extract_git_rev.bat
+++ b/project/Win32BuildSetup/extract_git_rev.bat
@@ -14,7 +14,15 @@ GOTO :extract
REM Fallback on msysgit - must be in the path
SET GITEXE="git.exe"
%GITEXE% --help > NUL 2>&1
-IF errorlevel 9009 IF NOT errorlevel 9010 GOTO :nogit
+IF errorlevel 9009 IF NOT errorlevel 9010 GOTO :nomsysgit
+GOTO :extract
+
+:nomsysgit
+
+REM Fallback on wrapped msysgit - must be in the path
+SET GITEXE=git.cmd
+CALL %GITEXE% --help > NUL 2>&1
+IF errorlevel 1 GOTO :nogit
GOTO :extract
:nogit