diff options
| author | Mike McQuaid | 2017-03-28 19:35:15 +0100 |
|---|---|---|
| committer | GitHub | 2017-03-28 19:35:15 +0100 |
| commit | 46a91428f7073319b3f8f2d98f140dba8f8b1956 (patch) | |
| tree | 9b463eae6483f120288003655e8a1de6667ec082 /Library | |
| parent | a543cb2f9e6d3a54a001e2cdd859fb4161f4b092 (diff) | |
| parent | 08523d393f597f09adabd163bd88f4e85104484a (diff) | |
| download | brew-46a91428f7073319b3f8f2d98f140dba8f8b1956.tar.bz2 | |
Merge pull request #2413 from JCount/increase-minimum-git-version
diagnostic: increase minimum git version to 1.8.5
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/diagnostic.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Library/Homebrew/diagnostic.rb b/Library/Homebrew/diagnostic.rb index 08c026f3c..110130f11 100644 --- a/Library/Homebrew/diagnostic.rb +++ b/Library/Homebrew/diagnostic.rb @@ -753,13 +753,14 @@ module Homebrew def check_git_version # https://help.github.com/articles/https-cloning-errors return unless Utils.git_available? - return unless Version.create(Utils.git_version) < Version.create("1.7.10") + return unless Version.create(Utils.git_version) < Version.create("1.8.5") git = Formula["git"] git_upgrade_cmd = git.any_version_installed? ? "upgrade" : "install" <<-EOS.undent An outdated version (#{Utils.git_version}) of Git was detected in your PATH. - Git 1.7.10 or newer is required to perform checkouts over HTTPS from GitHub. + Git 1.8.5 or newer is required to perform checkouts over HTTPS from GitHub and + to support the 'git -C <path>' option. Please upgrade: brew #{git_upgrade_cmd} git EOS |
