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