audit: use .diff instead of .patch for github diffs

This commit is contained in:
Adam Vandenberg 2014-04-11 07:31:56 -07:00
parent 513a1f2ebd
commit 7fe9413cf1

View File

@ -311,6 +311,8 @@ class FormulaAuditor
end
when %r[macports/trunk]
problem "MacPorts patches should specify a revision instead of trunk:\n#{patch.url}"
when %r[^https?://github\.com/.*commit.*\.patch$]
problem "GitHub appends a git version to patches; use .diff instead."
end
end