From 7fe9413cf16d70e89fdb79228a297d98a2608625 Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Fri, 11 Apr 2014 07:31:56 -0700 Subject: [PATCH] audit: use .diff instead of .patch for github diffs --- Library/Homebrew/cmd/audit.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb index 9f86577bea..af6fbc2e09 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