aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rwxr-xr-xLibrary/Homebrew/cmd/audit.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb
index f4e43a9e1..cb3bdcc5c 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