Help find GIT when not in PATH on Windows
This commit is contained in:
@@ -2126,6 +2126,18 @@ class PlatformSetup {
|
|||||||
|
|
||||||
LogHelper.info ("\x1b[32;1mUpdating \"" + haxelib.name + "\"\x1b[0m");
|
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", [ "pull" ]);
|
||||||
ProcessHelper.runCommand (lib, "git", [ "submodule", "init" ]);
|
ProcessHelper.runCommand (lib, "git", [ "submodule", "init" ]);
|
||||||
ProcessHelper.runCommand (lib, "git", [ "submodule", "update" ]);
|
ProcessHelper.runCommand (lib, "git", [ "submodule", "update" ]);
|
||||||
|
|||||||
Reference in New Issue
Block a user