From db76c21aee1e53ab284583284c96ba48111e5679 Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Mon, 13 Jun 2011 14:20:55 -0700 Subject: [PATCH] brew audit: check for git://github.com/ urls and warn --- Library/Homebrew/cmd/audit.rb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb index f4e43a9e17..cb3bdcc5c4 100755 --- a/Library/Homebrew/cmd/audit.rb +++ b/Library/Homebrew/cmd/audit.rb @@ -199,6 +199,13 @@ def audit_formula_urls f end end if strict? + # Check for git:// urls; https:// is preferred. + urls.each do |p| + if p =~ %r[^git://github\.com/] + problems << " * Use https:// URLs for accessing repositories on GitHub." + end + end + return problems end