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:
Pierre Bourdon
2014-07-20 22:02:51 +02:00

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