diff options
| author | Adam Vandenberg | 2011-06-13 14:20:55 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2011-06-13 14:20:55 -0700 |
| commit | db76c21aee1e53ab284583284c96ba48111e5679 (patch) | |
| tree | 5668284b56cd5095dd0373a63085ca82e935c4ef /Library | |
| parent | 6b2abeb4b91236d05820ac929f1eaa47b3b34c09 (diff) | |
| download | brew-db76c21aee1e53ab284583284c96ba48111e5679.tar.bz2 | |
brew audit: check for git://github.com/ urls and warn
Diffstat (limited to 'Library')
| -rwxr-xr-x | Library/Homebrew/cmd/audit.rb | 7 |
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 |
