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