diff options
| author | Mike McQuaid | 2013-10-30 10:34:04 -0700 |
|---|---|---|
| committer | Mike McQuaid | 2013-10-30 10:34:04 -0700 |
| commit | 194fce0bc01138118891aaf7ffda1239d4afebad (patch) | |
| tree | b44ffc85f37a0d6a32bfa3f4cee52a45f8980966 /Library/Homebrew/cmd | |
| parent | ff1081e90043998dba22c6417f072a4b2c9031dc (diff) | |
| download | homebrew-194fce0bc01138118891aaf7ffda1239d4afebad.tar.bz2 | |
doctor: ensure git --version actually matches.
Closes #23791.
Diffstat (limited to 'Library/Homebrew/cmd')
| -rw-r--r-- | Library/Homebrew/cmd/doctor.rb | 2 |
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 |
