diff options
author | Yuri Kunde Schlesner <yuriks@yuriks.net> | 2014-07-19 22:16:05 +0200 |
---|---|---|
committer | Yuri Kunde Schlesner <yuriks@yuriks.net> | 2014-07-19 22:16:05 +0200 |
commit | 78eb8ba844b5ccb23644274481e18370dd8428e3 (patch) | |
tree | c85fe001e3a76f99dc2a268728e6468ede861f67 /src | |
parent | Merge pull request #30 from neobrain/bitfield_work (diff) | |
download | yuzu-78eb8ba844b5ccb23644274481e18370dd8428e3.tar yuzu-78eb8ba844b5ccb23644274481e18370dd8428e3.tar.gz yuzu-78eb8ba844b5ccb23644274481e18370dd8428e3.tar.bz2 yuzu-78eb8ba844b5ccb23644274481e18370dd8428e3.tar.lz yuzu-78eb8ba844b5ccb23644274481e18370dd8428e3.tar.xz yuzu-78eb8ba844b5ccb23644274481e18370dd8428e3.tar.zst yuzu-78eb8ba844b5ccb23644274481e18370dd8428e3.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/common/scm_rev_gen.js | 9 |
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; |