aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
authorAdam Vandenberg2014-04-11 07:31:56 -0700
committerAdam Vandenberg2014-04-11 07:31:56 -0700
commit7fe9413cf16d70e89fdb79228a297d98a2608625 (patch)
treebb19d6ab9d9d3c897b41928f844d7f6b9fae9929 /Library/Homebrew/cmd
parent513a1f2ebd93775b7ca2689fd3cf967f4f717fcd (diff)
downloadbrew-7fe9413cf16d70e89fdb79228a297d98a2608625.tar.bz2
audit: use .diff instead of .patch for github diffs
Diffstat (limited to 'Library/Homebrew/cmd')
-rw-r--r--Library/Homebrew/cmd/audit.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb
index 9f86577be..af6fbc2e0 100644
--- a/Library/Homebrew/cmd/audit.rb
+++ b/Library/Homebrew/cmd/audit.rb
@@ -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