aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
authorMike McQuaid2013-10-30 10:34:04 -0700
committerMike McQuaid2013-10-30 10:34:04 -0700
commit194fce0bc01138118891aaf7ffda1239d4afebad (patch)
treeb44ffc85f37a0d6a32bfa3f4cee52a45f8980966 /Library/Homebrew/cmd
parentff1081e90043998dba22c6417f072a4b2c9031dc (diff)
downloadhomebrew-194fce0bc01138118891aaf7ffda1239d4afebad.tar.bz2
doctor: ensure git --version actually matches.
Closes #23791.
Diffstat (limited to 'Library/Homebrew/cmd')
-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