aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-06-15 11:24:24 -0500
committerJack Nagel2014-06-15 20:23:21 -0500
commit732656056cf4afd34c0bdf2df427e2018cf8115a (patch)
tree4ef6ec0cad501124c346f74da994e7a8a67c5c39 /Library
parentc487453d78bd07c348657111bbec02cd45f8fb9b (diff)
downloadhomebrew-732656056cf4afd34c0bdf2df427e2018cf8115a.tar.bz2
brew-test-bot: fix FormulaUnavailableError handling
Diffstat (limited to 'Library')
-rwxr-xr-xLibrary/Contributions/cmd/brew-test-bot.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/Library/Contributions/cmd/brew-test-bot.rb b/Library/Contributions/cmd/brew-test-bot.rb
index 37c4bd61d..23a07ab54 100755
--- a/Library/Contributions/cmd/brew-test-bot.rb
+++ b/Library/Contributions/cmd/brew-test-bot.rb
@@ -126,7 +126,12 @@ class Test
@formulae = []
url_match = argument.match HOMEBREW_PULL_OR_COMMIT_URL_REGEX
- formula = Formula.factory argument rescue FormulaUnavailableError
+
+ begin
+ formula = Formulary.factory(argument)
+ rescue FormulaUnavailableError
+ end
+
git "rev-parse", "--verify", "-q", argument
if $?.success?
@hash = argument