summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2014-07-21 16:51:51 +0200
committerbunnei <bunneidev@gmail.com>2014-07-21 16:51:51 +0200
commit97d47d55f3a47f29856e48e611846021fde1c850 (patch)
treea96a631d651a595219902a0bcc8a23f20d5c2993
parentMerge pull request #33 from lioncash/redefs (diff)
parent[build] Search for the git binary in the default msysgit install dir (diff)
downloadyuzu-97d47d55f3a47f29856e48e611846021fde1c850.tar
yuzu-97d47d55f3a47f29856e48e611846021fde1c850.tar.gz
yuzu-97d47d55f3a47f29856e48e611846021fde1c850.tar.bz2
yuzu-97d47d55f3a47f29856e48e611846021fde1c850.tar.lz
yuzu-97d47d55f3a47f29856e48e611846021fde1c850.tar.xz
yuzu-97d47d55f3a47f29856e48e611846021fde1c850.tar.zst
yuzu-97d47d55f3a47f29856e48e611846021fde1c850.zip
-rw-r--r--src/common/scm_rev_gen.js9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/common/scm_rev_gen.js b/src/common/scm_rev_gen.js
index 29c913b85..98313e376 100644
--- a/src/common/scm_rev_gen.js
+++ b/src/common/scm_rev_gen.js
@@ -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;