mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 05:47:56 -07:00
Merge pull request #656 from shuffle2/find-git-ext
Windows: Also look for git.exe in the registry (for Git Extensions installs).
This commit is contained in:
commit
4f78ba6a76
@ -8,6 +8,15 @@ var cmd_branch = " rev-parse --abbrev-ref HEAD";
|
|||||||
|
|
||||||
function GetGitExe()
|
function GetGitExe()
|
||||||
{
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
gitexe = wshShell.RegRead("HKCU\\Software\\GitExtensions\\gitcommand");
|
||||||
|
wshShell.Exec(gitexe);
|
||||||
|
return gitexe;
|
||||||
|
}
|
||||||
|
catch (e)
|
||||||
|
{}
|
||||||
|
|
||||||
for (var gitexe in {"git.cmd":1, "git":1, "git.bat":1})
|
for (var gitexe in {"git.cmd":1, "git":1, "git.bat":1})
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
|
Loading…
Reference in New Issue
Block a user