Merge pull request #16626 from nex3/patch-1
Don't require "branch: main" for resources with revisions set
This commit is contained in:
commit
14763c9a7f
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user