From 84f544f08ff280ea1750a647933e4bb6420c5b22 Mon Sep 17 00:00:00 2001 From: Carlo Cabrera <30379873+carlocab@users.noreply.github.com> Date: Thu, 25 Aug 2022 20:54:19 +0800 Subject: [PATCH] Require git log only when not strict --- 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 6cdf12b80d..bcff035602 100644 --- a/Library/Homebrew/formula_auditor.rb +++ b/Library/Homebrew/formula_auditor.rb @@ -411,7 +411,7 @@ module Homebrew def audit_gcc_dependency return unless @git return unless @core_tap - return unless formula.tap.git? # git log is required + return if !@strict && !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)