diff options
| author | Mike McQuaid | 2013-02-17 16:31:27 +0000 |
|---|---|---|
| committer | Mike McQuaid | 2013-02-18 10:42:14 +0000 |
| commit | d2273d32232c3af414bcb2a80229e23a67f8a069 (patch) | |
| tree | e21dc61e69a544793bfb312f207f092791f8d480 | |
| parent | 4ed4eee94284fd66bce9151cd23e48ee0c0fc247 (diff) | |
| download | homebrew-d2273d32232c3af414bcb2a80229e23a67f8a069.tar.bz2 | |
brew-doctor: fix autocrlf warning (again).
Closes #17843.
| -rw-r--r-- | Library/Homebrew/cmd/doctor.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb index 969572e15..32f3f5288 100644 --- a/Library/Homebrew/cmd/doctor.rb +++ b/Library/Homebrew/cmd/doctor.rb @@ -743,9 +743,8 @@ def check_git_newline_settings return unless which "git" 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. 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, consider removing these by running: - `git config --global --set core.autocrlf false` + `git config --global --set core.autocrlf input` EOS end end |
