diff --git a/Library/Homebrew/resource_auditor.rb b/Library/Homebrew/resource_auditor.rb index 3f48259eb6..8155d311c0 100644 --- a/Library/Homebrew/resource_auditor.rb +++ b/Library/Homebrew/resource_auditor.rb @@ -143,6 +143,7 @@ module Homebrew return unless @strict return if spec_name != :head return unless Utils::Git.remote_exists?(url) + return if specs[:tag].present? branch = Utils.popen_read("git", "ls-remote", "--symref", url, "HEAD") .match(%r{ref: refs/heads/(.*?)\s+HEAD})[1]