aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Nagel2013-01-30 01:26:26 -0600
committerJack Nagel2013-01-30 01:26:28 -0600
commiteff8a6125469e6bedabecc75cde45e44b1fc40e7 (patch)
treec974f0d084efe09ce5bc98e6ba32cb294f436faa
parent0cf22192f5bd2bdf912b657c8f11377400965e36 (diff)
downloadhomebrew-eff8a6125469e6bedabecc75cde45e44b1fc40e7.tar.bz2
doctor: core.autocrlf can be empty
c.f. #17361.
-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 94e466f3e..42b2090dd 100644
--- a/Library/Homebrew/cmd/doctor.rb
+++ b/Library/Homebrew/cmd/doctor.rb
@@ -723,7 +723,7 @@ def check_git_newline_settings
autocrlf = `git config --get core.autocrlf`.chomp
safecrlf = `git config --get core.safecrlf`.chomp
- unless autocrlf == 'false' then <<-EOS.undent
+ if !autocrlf.empty? && autocrlf != 'false' then <<-EOS.undent
Suspicious Git newline settings found.
The detected Git newline settings will cause checkout problems: