diff --git a/Windows/git-version-gen.cmd b/Windows/git-version-gen.cmd index 166696d848..d62f4c606f 100644 --- a/Windows/git-version-gen.cmd +++ b/Windows/git-version-gen.cmd @@ -37,7 +37,12 @@ if errorlevel 1 ( set GIT="%ProgramFiles(x86)%\Git\bin\git.exe" call !GIT! describe > NUL 2> NUL if errorlevel 1 ( + echo !GIT! set GIT="%ProgramFiles%\Git\bin\git.exe" + call !GIT! describe > NUL 2> NUL + if errorlevel 1 ( + set GIT="C:\Program Files\Git\bin\git.exe" + ) ) )