aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2013-10-30 10:34:04 -0700
committerMike McQuaid2013-10-30 10:34:04 -0700
commita252c90a0d49cae0889a9a540a3c220c53340425 (patch)
tree42f928e585cdc45a04a3c1fc6eca4c25b0703860 /Library
parent9966943a34b32afdd4224a196ff1bbd7e0b7a134 (diff)
downloadbrew-a252c90a0d49cae0889a9a540a3c220c53340425.tar.bz2
doctor: ensure git --version actually matches.
Closes Homebrew/homebrew#23791.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/doctor.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb
index a9624397e..63c326523 100644
--- a/Library/Homebrew/cmd/doctor.rb
+++ b/Library/Homebrew/cmd/doctor.rb
@@ -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