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()
|
||||
{
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue