aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Library/Homebrew/diagnostic.rb2
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.