aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorJack Nagel2013-01-30 01:26:26 -0600
committerJack Nagel2013-01-30 01:26:28 -0600
commitb6631ac23f66e554495c2f7ca48405bbf2eb9a23 (patch)
tree99ae2d948301069d62ac56e32c59bbc1ba7077b8 /Library/Homebrew
parent1a05e18fe91e4e11d9cfc08a36a23e70fe83930e (diff)
downloadbrew-b6631ac23f66e554495c2f7ca48405bbf2eb9a23.tar.bz2
doctor: core.autocrlf can be empty
c.f. Homebrew/homebrew#17361.
Diffstat (limited to 'Library/Homebrew')
-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: