diff options
| author | Alexander Karatarakis <alkarata@microsoft.com> | 2017-02-15 16:35:51 -0800 |
|---|---|---|
| committer | Alexander Karatarakis <alkarata@microsoft.com> | 2017-02-15 16:35:51 -0800 |
| commit | 03b65486536fc36889a9225fb8dc9de10f823ac6 (patch) | |
| tree | d07b2ec09766d9c40bc49829faa26a93d83699bd /toolsrc/src | |
| parent | 500fe7957a04e4e9a5dc320580f9e2151f050a65 (diff) | |
| download | vcpkg-03b65486536fc36889a9225fb8dc9de10f823ac6.tar.gz vcpkg-03b65486536fc36889a9225fb8dc9de10f823ac6.zip | |
Use MinGit instead of PortableGit. Resolves #662
Diffstat (limited to 'toolsrc/src')
| -rw-r--r-- | toolsrc/src/vcpkg_Environment.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/toolsrc/src/vcpkg_Environment.cpp b/toolsrc/src/vcpkg_Environment.cpp index c9fadc8ac..cc3dba100 100644 --- a/toolsrc/src/vcpkg_Environment.cpp +++ b/toolsrc/src/vcpkg_Environment.cpp @@ -52,12 +52,15 @@ namespace vcpkg::Environment static const fs::path default_git_installation_dir = Environment::get_ProgramFiles_platform_bitness() / "git/cmd"; static const fs::path default_git_installation_dir_32 = Environment::get_ProgramFiles_32_bit() / "git/cmd"; - const fs::path downloaded_git = paths.downloads / "PortableGit" / "cmd"; - const std::wstring path_buf = Strings::wformat(L"%s;%s;%s;%s", - downloaded_git.native(), + const fs::path portable_git = paths.downloads / "PortableGit" / "cmd"; // TODO: Remove next time we bump the version + const fs::path min_git = paths.downloads / "MinGit-2.11.1-32-bit" / "cmd"; + const std::wstring path_buf = Strings::wformat(L"%s;%s;%s;%s;%s", + min_git.native(), + portable_git.native(), *System::get_environmental_variable(L"PATH"), default_git_installation_dir.native(), default_git_installation_dir_32.native()); + System::set_environmental_variable(L"PATH", path_buf.c_str()); static constexpr std::array<int, 3> git_version = { 2,0,0 }; |
