aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2011-06-13 14:20:55 -0700
committerAdam Vandenberg2011-06-13 14:20:55 -0700
commitdb76c21aee1e53ab284583284c96ba48111e5679 (patch)
tree5668284b56cd5095dd0373a63085ca82e935c4ef /Library
parent6b2abeb4b91236d05820ac929f1eaa47b3b34c09 (diff)
downloadbrew-db76c21aee1e53ab284583284c96ba48111e5679.tar.bz2
brew audit: check for git://github.com/ urls and warn
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