aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2013-11-25 13:22:03 -0600
committerJack Nagel2013-11-25 13:22:03 -0600
commit6675fd88fc3421711ea021287deb4aae8c6206f4 (patch)
treea2967e23b91d4a50277333ad8dfd322af324d41c /Library
parent09c9d519888114682e54fe3a79a18d51e397c04b (diff)
downloadbrew-6675fd88fc3421711ea021287deb4aae8c6206f4.tar.bz2
Fix some unanchored patch URLs
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/audit.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb
index 6c4e09a07..be8d7c077 100644
--- a/Library/Homebrew/cmd/audit.rb
+++ b/Library/Homebrew/cmd/audit.rb
@@ -282,7 +282,7 @@ class FormulaAuditor
def audit_patches
Patches.new(f.patches).select(&:external?).each do |p|
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}/
problem "GitHub/Gist patches should specify a revision:\n#{p.url}"
end