Merge pull request #12276 from samford/resource_auditor-omit-branch-error-when-using-tag
ResourceAuditor: Skip branch error when using tag
This commit is contained in:
commit
e2b609c3ee
@ -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]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user