Require git log only when not strict

This commit is contained in:
Carlo Cabrera 2022-08-25 20:54:19 +08:00
parent 6175b3fe4c
commit 84f544f08f
No known key found for this signature in database
GPG Key ID: C74D447FC549A1D0

View File

@ -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)