Skip to content
Snippets Groups Projects
Commit e404a71e authored by Josh Hagins's avatar Josh Hagins Committed by Mike McQuaid
Browse files

diagnostic: only warn about local newline config


cd to `HOMEBREW_REPOSITORY` before checking git newline settings.

Closes Homebrew/homebrew#49565.

Signed-off-by: default avatarMike McQuaid <mike@mikemcquaid.com>
parent 76767f3d
No related branches found
No related tags found
No related merge requests found
......@@ -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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment