update make_scmrev.h.js for modern times by searching for 64bit git on 32bit msbuild/devenv

This commit is contained in:
zeromus 2022-05-23 18:03:42 -04:00
parent 75230bfe0a
commit d9479cd6d3
1 changed files with 4 additions and 0 deletions

View File

@ -38,6 +38,10 @@ function GetGitExe()
if (oFS.FileExists(gitexe)) {
return gitexe;
}
gitexe = wshShell.ExpandEnvironmentStrings("%ProgramW6432%") + msyspath;
if (oFS.FileExists(gitexe)) {
return gitexe;
}
WScript.Echo("Cannot find git or git.cmd, check your PATH:\n" +
wshShell.ExpandEnvironmentStrings("%PATH%"));