Skip to content
Snippets Groups Projects
Commit a252c90a authored by Mike McQuaid's avatar Mike McQuaid
Browse files

doctor: ensure git --version actually matches.

Closes Homebrew/homebrew#23791.
parent 9966943a
No related branches found
No related tags found
No related merge requests found
......@@ -723,7 +723,7 @@ def __check_git_version
# https://help.github.com/articles/https-cloning-errors
`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.
Git 1.7.10 or newer is required to perform checkouts over HTTPS from GitHub.
Please upgrade: brew upgrade git
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment