aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2015-07-08 16:22:42 +0100
committerMike McQuaid2015-07-08 16:28:51 +0100
commit804f1431d4cc22659367026531b1c92c7c6b981a (patch)
treeeba9c986fce15e54d25b75c32f563056a20c7bb0 /Library
parentec4bfee3e72f6fe438455ace35ca2126a7134ba1 (diff)
downloadbrew-804f1431d4cc22659367026531b1c92c7c6b981a.tar.bz2
audit: github repo: verify stable formula is set .
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/audit.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb
index 78242f78a..a73a0bef5 100644
--- a/Library/Homebrew/cmd/audit.rb
+++ b/Library/Homebrew/cmd/audit.rb
@@ -426,7 +426,7 @@ class FormulaAuditor
return unless @strict
regex = %r{https?://github.com/([^/]+)/([^/]+)/?.*}
- _, user, repo = *regex.match(formula.stable.url)
+ _, user, repo = *regex.match(formula.stable.url) if formula.stable
_, user, repo = *regex.match(formula.homepage) unless user
return if !user || !repo