From b6631ac23f66e554495c2f7ca48405bbf2eb9a23 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Wed, 30 Jan 2013 01:26:26 -0600 Subject: [PATCH] doctor: core.autocrlf can be empty c.f. Homebrew/homebrew#17361. --- Library/Homebrew/cmd/doctor.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb index 94e466f3e7..42b2090dd0 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: