doctor: core.autocrlf can be empty

c.f. Homebrew/homebrew#17361.
This commit is contained in:
Jack Nagel 2013-01-30 01:26:26 -06:00
parent 1a05e18fe9
commit b6631ac23f

View File

@ -723,7 +723,7 @@ def check_git_newline_settings
autocrlf = `git config --get core.autocrlf`.chomp autocrlf = `git config --get core.autocrlf`.chomp
safecrlf = `git config --get core.safecrlf`.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. Suspicious Git newline settings found.
The detected Git newline settings will cause checkout problems: The detected Git newline settings will cause checkout problems: