brew-doctor: fix autocrlf warning (again).

Closes Homebrew/homebrew#17843.
This commit is contained in:
Mike McQuaid 2013-02-17 16:31:27 +00:00
parent ddaf891add
commit 7766505348

View File

@ -743,9 +743,8 @@ def check_git_newline_settings
return unless which "git" return unless which "git"
autocrlf = `git config --get core.autocrlf`.chomp autocrlf = `git config --get core.autocrlf`.chomp
safecrlf = `git config --get core.safecrlf`.chomp
if !autocrlf.empty? && autocrlf != 'false' then <<-EOS.undent if autocrlf == 'true' 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:
@ -753,7 +752,7 @@ def check_git_newline_settings
If you are not routinely dealing with Windows-based projects, If you are not routinely dealing with Windows-based projects,
consider removing these by running: consider removing these by running:
`git config --global --set core.autocrlf false` `git config --global --set core.autocrlf input`
EOS EOS
end end
end end