Merge pull request #7993 from dtrodrigues/get_repo_head
audit: also search head url to get repo data
This commit is contained in:
commit
4a20f76382
@ -559,6 +559,7 @@ module Homebrew
|
||||
|
||||
_, user, repo = *regex.match(formula.stable.url) if formula.stable
|
||||
_, user, repo = *regex.match(formula.homepage) unless user
|
||||
_, user, repo = *regex.match(formula.head.url) if !user && formula.head
|
||||
return if !user || !repo
|
||||
|
||||
repo.delete_suffix!(".git")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user