Fix some unanchored patch URLs
This commit is contained in:
parent
09c9d51988
commit
6675fd88fc
@ -282,7 +282,7 @@ class FormulaAuditor
|
|||||||
def audit_patches
|
def audit_patches
|
||||||
Patches.new(f.patches).select(&:external?).each do |p|
|
Patches.new(f.patches).select(&:external?).each do |p|
|
||||||
case p.url
|
case p.url
|
||||||
when %r[raw\.github\.com], %r[gist\.github\.com/raw]
|
when %r[raw\.github\.com], %r[gist\.github\.com/raw], %r[gist\.github\.com/.+/raw$]
|
||||||
unless p.url =~ /[a-fA-F0-9]{40}/
|
unless p.url =~ /[a-fA-F0-9]{40}/
|
||||||
problem "GitHub/Gist patches should specify a revision:\n#{p.url}"
|
problem "GitHub/Gist patches should specify a revision:\n#{p.url}"
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user