doctor: ensure git --version actually matches.
Closes Homebrew/homebrew#23791.
This commit is contained in:
parent
9966943a34
commit
a252c90a0d
@ -723,7 +723,7 @@ def __check_git_version
|
|||||||
# https://help.github.com/articles/https-cloning-errors
|
# https://help.github.com/articles/https-cloning-errors
|
||||||
`git --version`.chomp =~ /git version ((?:\d+\.?)+)/
|
`git --version`.chomp =~ /git version ((?:\d+\.?)+)/
|
||||||
|
|
||||||
if Version.new($1) < Version.new("1.7.10") then <<-EOS.undent
|
if $1 and Version.new($1) < Version.new("1.7.10") then <<-EOS.undent
|
||||||
An outdated version of Git was detected in your PATH.
|
An outdated 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.7.10 or newer is required to perform checkouts over HTTPS from GitHub.
|
||||||
Please upgrade: brew upgrade git
|
Please upgrade: brew upgrade git
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user