Skip to content

Commit

Permalink
[git] Update to 2.14.2.3 (was 2.14.1)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexkaratarakis committed Oct 17, 2017
1 parent ffd91c0 commit fa4e54a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
14 changes: 7 additions & 7 deletions scripts/fetchDependency.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -158,16 +158,16 @@ function SelectProgram([Parameter(Mandatory=$true)][string]$Dependency)
}
elseif($Dependency -eq "git")
{
$requiredVersion = "2.14.1"
$downloadVersion = "2.14.1"
$url = "https://github.com/git-for-windows/git/releases/download/v2.14.1.windows.1/MinGit-2.14.1-32-bit.zip" # We choose the 32-bit version
$downloadPath = "$downloadsDir\MinGit-2.14.1-32-bit.zip"
$expectedDownloadedFileHash = "77b468e0ead1e7da4cb3a1cf35dabab5210bf10457b4142f5e9430318217cdef"
$requiredVersion = "2.14.2"
$downloadVersion = "2.14.2"
$url = "https://github.com/git-for-windows/git/releases/download/v2.14.2.windows.3/MinGit-2.14.2.3-32-bit.zip" # We choose the 32-bit version
$downloadPath = "$downloadsDir\MinGit-2.14.2.3-32-bit.zip"
$expectedDownloadedFileHash = "7cc1f27e1cfe79381e1a504a5fc7bc33951ac9031cd14c3bf478769d21a26cce"
# There is another copy of git.exe in MinGit\bin. However, an installed version of git add the cmd dir to the PATH.
# Therefore, choosing the cmd dir here as well.
$executableFromDownload = "$downloadsDir\MinGit-2.14.1-32-bit\cmd\git.exe"
$executableFromDownload = "$downloadsDir\MinGit-2.14.2.3-32-bit\cmd\git.exe"
$extractionType = $ExtractionType_ZIP
$extractionFolder = "$downloadsDir\MinGit-2.14.1-32-bit"
$extractionFolder = "$downloadsDir\MinGit-2.14.2.3-32-bit"
}
elseif($Dependency -eq "installerbase")
{
Expand Down
4 changes: 2 additions & 2 deletions toolsrc/src/vcpkg/vcpkgpaths.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -151,10 +151,10 @@ namespace vcpkg

fs::path get_git_path(const fs::path& downloads_folder, const fs::path& scripts_folder)
{
static constexpr std::array<int, 3> EXPECTED_VERSION = {2, 14, 1};
static constexpr std::array<int, 3> EXPECTED_VERSION = {2, 14, 2};
static const std::string VERSION_CHECK_ARGUMENTS = "--version";

const fs::path downloaded_copy = downloads_folder / "MinGit-2.14.1-32-bit" / "cmd" / "git.exe";
const fs::path downloaded_copy = downloads_folder / "MinGit-2.14.2.3-32-bit" / "cmd" / "git.exe";
const std::vector<fs::path> from_path = Files::find_from_PATH("git");

std::vector<fs::path> candidate_paths;
Expand Down

0 comments on commit fa4e54a

Please sign in to comment.