2
1
Fork 0
mirror of https://github.com/yuzu-emu/yuzu.git synced 2024-07-04 23:31:19 +01:00

Merge pull request #32 from yuriks/master

[build] Search for the git binary in the default msysgit install dir
This commit is contained in:
bunnei 2014-07-21 10:51:51 -04:00
commit 97d47d55f3

View file

@ -6,8 +6,15 @@ var cmd_revision = " rev-parse HEAD";
var cmd_describe = " describe --always --long --dirty";
var cmd_branch = " rev-parse --abbrev-ref HEAD";
var git_search_paths = {
"git.cmd": 1,
"git": 1,
"C:\\Program Files (x86)\\Git\\bin\\git.exe": 1,
"C:\\Program Files\\Git\\bin\\git.exe": 1
};
function GetGitExe() {
for (var gitexe in { "git.cmd": 1, "git": 1 }) {
for (var gitexe in git_search_paths) {
try {
wshShell.Exec(gitexe);
return gitexe;