diff options
Diffstat (limited to 'project/Win32BuildSetup/extract_git_rev.bat')
-rw-r--r-- | project/Win32BuildSetup/extract_git_rev.bat | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/project/Win32BuildSetup/extract_git_rev.bat b/project/Win32BuildSetup/extract_git_rev.bat index 880ce620b6..242c09aa41 100644 --- a/project/Win32BuildSetup/extract_git_rev.bat +++ b/project/Win32BuildSetup/extract_git_rev.bat @@ -2,6 +2,8 @@ REM Batch file output: %GIT_REV% variable, containing the git revision +SET GIT_REV=unknown + REM Use tgit.exe of TortoiseGit if available SET GITEXE=tgit.exe %GITEXE% --version > NUL 2>&1 @@ -21,14 +23,9 @@ GOTO :extract 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 +IF errorlevel 1 GOTO :done GOTO :extract -:nogit - -REM Failure - no git tool to extract information. -SET GIT_REV=Unknown -GOTO :done :extract |