From de932b5efcfa24dbb31049ecba9e68345a2e8662 Mon Sep 17 00:00:00 2001 From: Henrik Rydgard Date: Sun, 28 Feb 2016 11:03:12 +0100 Subject: [PATCH] Make git-version-gen work with a freshly installed 64-bit git msys. For some reason %ProgramFiles% returns the (x86) one anyway... --- Windows/git-version-gen.cmd | 5 +++++ 1 file changed, 5 insertions(+) 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" + ) ) )