Windows: Also look for git.exe in the registry (for Git Extensions installs).

This commit is contained in:
Shawn Hoffman 2014-07-20 12:29:38 -07:00
parent 963e1a698c
commit cfc7bb35c2
1 changed files with 10 additions and 1 deletions

View File

@ -8,6 +8,15 @@ var cmd_branch = " rev-parse --abbrev-ref HEAD";
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})
{
try