Skip to content

Commit

Permalink
Merge pull request #16626 from nex3/patch-1
Browse files Browse the repository at this point in the history
Don't require "branch: main" for resources with revisions set
  • Loading branch information
reitermarkus committed Feb 9, 2024
2 parents a925911 + da624b2 commit 14763c9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Library/Homebrew/resource_auditor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ def audit_head_branch
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
Expand Down

0 comments on commit 14763c9

Please sign in to comment.