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>
This commit is contained in:
parent
76767f3d6e
commit
e404a71e43
@ -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.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user