diff options
| author | Josh Hagins | 2016-02-26 13:35:36 -0500 | 
|---|---|---|
| committer | Mike McQuaid | 2016-03-01 13:25:24 -0800 | 
| commit | e404a71e43bd5192e8ec0dec2e3ccef18292bfb7 (patch) | |
| tree | 8f832ddcf14fcc5389fb192a76ce523415e120d2 | |
| parent | 76767f3d6e89e540241e973b8ffe04690a9a2ccb (diff) | |
| download | brew-e404a71e43bd5192e8ec0dec2e3ccef18292bfb7.tar.bz2 | |
diagnostic: only warn about local newline config
cd to `HOMEBREW_REPOSITORY` before checking git newline settings.
Closes Homebrew/homebrew#49565.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
| -rw-r--r-- | Library/Homebrew/diagnostic.rb | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/diagnostic.rb b/Library/Homebrew/diagnostic.rb index ecd347ca7..2e955216f 100644 --- a/Library/Homebrew/diagnostic.rb +++ b/Library/Homebrew/diagnostic.rb @@ -1003,7 +1003,7 @@ module Homebrew        def check_git_newline_settings          return unless Utils.git_available? -        autocrlf = `git config --get core.autocrlf`.chomp +        autocrlf = HOMEBREW_REPOSITORY.cd { `git config --get core.autocrlf`.chomp }          if autocrlf == "true" then <<-EOS.undent          Suspicious Git newline settings found.  | 
