aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorJack Nagel2013-05-27 10:02:16 -0500
committerJack Nagel2013-05-27 10:06:45 -0500
commita377cad783ff89557edd086e3c064bbfcb858827 (patch)
tree90e0a2a1346fc0b272c73a1f88a2ec1c7324626c /Library/Homebrew
parent86ce842c700a47abdc354e80cc3b0b3938ab2132 (diff)
downloadhomebrew-a377cad783ff89557edd086e3c064bbfcb858827.tar.bz2
doctor: check git SSL settings on <= 10.5
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/cmd/doctor.rb25
1 files changed, 13 insertions, 12 deletions
diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb
index 1a8033623..de4d40758 100644
--- a/Library/Homebrew/cmd/doctor.rb
+++ b/Library/Homebrew/cmd/doctor.rb
@@ -886,18 +886,19 @@ def check_git_status
end
end
-def check_for_leopard_ssl
- if MacOS.version == :leopard and not ENV['GIT_SSL_NO_VERIFY']
- <<-EOS.undent
- The version of libcurl provided with Mac OS X Leopard has outdated
- SSL certificates.
-
- This can cause problems when running Homebrew commands that use Git to
- fetch over HTTPS, e.g. `brew update` or installing formulae that perform
- Git checkouts.
-
- You can force Git to ignore these errors by setting GIT_SSL_NO_VERIFY.
- export GIT_SSL_NO_VERIFY=1
+def check_git_ssl_verify
+ if MacOS.version <= :leopard && !ENV['GIT_SSL_NO_VERIFY'] then <<-EOS.undent
+ The version of libcurl provided with Mac OS X #{MacOS.version} has outdated
+ SSL certificates.
+
+ This can cause problems when running Homebrew commands that use Git to
+ fetch over HTTPS, e.g. `brew update` or installing formulae that perform
+ Git checkouts.
+
+ You can force Git to ignore these errors:
+ export GIT_SSL_NO_VERIFY=1
+ or
+ git config --global http.sslVerify false
EOS
end
end