From 1fae6062e61746df459ab7fb8f85e8f982c38d60 Mon Sep 17 00:00:00 2001 From: Carlo Cabrera <30379873+carlocab@users.noreply.github.com> Date: Thu, 25 Aug 2022 23:57:04 +0800 Subject: [PATCH] Fix check for tap git directory. Co-authored-by: Rylan Polster --- Library/Homebrew/formula_auditor.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/formula_auditor.rb b/Library/Homebrew/formula_auditor.rb index 75f681d160..e736553923 100644 --- a/Library/Homebrew/formula_auditor.rb +++ b/Library/Homebrew/formula_auditor.rb @@ -407,7 +407,7 @@ module Homebrew def audit_gcc_dependency return unless @core_tap - return if !@strict && !@git && !formula.tap.git? # git log is required for non-strict audit + return if !@strict && !(@git && formula.tap.git?) # git log is required for non-strict audit return unless Homebrew::SimulateSystem.simulating_or_running_on_linux? return unless linux_only_gcc_dep?(formula)