diff --git a/tools/utils/PlatformSetup.hx b/tools/utils/PlatformSetup.hx index 578017de6..335647dd8 100644 --- a/tools/utils/PlatformSetup.hx +++ b/tools/utils/PlatformSetup.hx @@ -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" ]);