audit: also search head url to get repo data

This commit is contained in:
Dustin Rodrigues 2020-07-13 11:04:27 -04:00
parent ea47dce9ee
commit b037dfc147

View File

@ -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")