From 1c7d70646fc98ec2695b74d7ec3f5df466fe558f Mon Sep 17 00:00:00 2001 From: Joshua Granick Date: Mon, 13 Jul 2015 11:27:54 -0700 Subject: [PATCH] Help find GIT when not in PATH on Windows --- tools/utils/PlatformSetup.hx | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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" ]);