Help find GIT when not in PATH on Windows

This commit is contained in:
Joshua Granick
2015-07-13 11:27:54 -07:00
parent 08a8294a5c
commit 1c7d70646f

View File

@@ -2126,6 +2126,18 @@ class PlatformSetup {
LogHelper.info ("\x1b[32;1mUpdating \"" + haxelib.name + "\"\x1b[0m");
if (PlatformHelper.hostPlatform == Platform.WINDOWS) {
var path = Sys.getEnv ("PATH");
if (path.indexOf ("Git") == -1) {
Sys.putEnv ("PATH", "C:\\Program Files (x86)\\Git\\bin;" + path);
}
}
ProcessHelper.runCommand (lib, "git", [ "pull" ]);
ProcessHelper.runCommand (lib, "git", [ "submodule", "init" ]);
ProcessHelper.runCommand (lib, "git", [ "submodule", "update" ]);