Skip to content

Commit

Permalink
[WIN] fix git command detection for recent msysgit
Browse files Browse the repository at this point in the history
  • Loading branch information
CrystalP authored and CrystalP committed Jan 2, 2012
1 parent 9a7aa62 commit 7790999
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion project/Win32BuildSetup/extract_git_rev.bat
Expand Up @@ -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
Expand Down

0 comments on commit 7790999

Please sign in to comment.