diff --git a/Library/Homebrew/resource_auditor.rb b/Library/Homebrew/resource_auditor.rb index 0bfb8742d2..39c348a7ea 100644 --- a/Library/Homebrew/resource_auditor.rb +++ b/Library/Homebrew/resource_auditor.rb @@ -127,7 +127,7 @@ module Homebrew def audit_head_branch return unless @online return unless @strict - return unless spec_name == :head + return if spec_name != :head return unless Utils::Git.remote_exists?(url) branch = Utils.popen_read("git", "ls-remote", "--symref", url, "HEAD")