From 7fb1620c58c1f5f9fc47934c4c1460532b0074be Mon Sep 17 00:00:00 2001 From: Shaun Jackman Date: Tue, 15 Dec 2020 12:45:54 -0800 Subject: [PATCH] Enable check_repository_references conditionally Enable check_repository_references when HOMEBREW_PREFIX == HOMEBREW_REPOSITORY. Co-authored-by: Mike McQuaid --- Library/Homebrew/formula_cellar_checks.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/Library/Homebrew/formula_cellar_checks.rb b/Library/Homebrew/formula_cellar_checks.rb index 7d074d571c..f7ffc988f0 100644 --- a/Library/Homebrew/formula_cellar_checks.rb +++ b/Library/Homebrew/formula_cellar_checks.rb @@ -210,6 +210,7 @@ module FormulaCellarChecks end def check_repository_references(prefix) + return if HOMEBREW_PREFIX != HOMEBREW_REPOSITORY return unless prefix.directory? keg = Keg.new(prefix)