Fix check for tap git directory.

Co-authored-by: Rylan Polster <rslpolster@gmail.com>
This commit is contained in:
Carlo Cabrera 2022-08-25 23:57:04 +08:00 committed by GitHub
parent 665b6ca5c5
commit 1fae6062e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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