aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorMike McQuaid2016-06-25 22:14:49 +0100
committerMike McQuaid2016-06-25 22:14:49 +0100
commitfc85a6fab67df7b4412d6910ef7a1f6ff1299531 (patch)
tree8af387482c7158e2a797738d4f3479e26e9a27ff /Library/Homebrew
parent37eaf3b4d28ae012de5ccb93ac39765c0f717014 (diff)
downloadbrew-fc85a6fab67df7b4412d6910ef7a1f6ff1299531.tar.bz2
test-bot: handle no-tap upload case.
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/dev-cmd/test-bot.rb9
1 files changed, 7 insertions, 2 deletions
diff --git a/Library/Homebrew/dev-cmd/test-bot.rb b/Library/Homebrew/dev-cmd/test-bot.rb
index 8c72c818a..8a20bb594 100644
--- a/Library/Homebrew/dev-cmd/test-bot.rb
+++ b/Library/Homebrew/dev-cmd/test-bot.rb
@@ -795,8 +795,13 @@ module Homebrew
deep_merge_hashes hash, Utils::JSON.load(IO.read(json_file))
end
- user, repo = bottles_hash.keys.first.split("/", 3)
- tap = Tap.new user, repo
+ first_formula_name = bottles_hash.keys.first
+ tap = if first_formula_name.include? "/"
+ user, repo = bottles_hash.keys.first.split("/", 3)
+ Tap.new user, repo
+ else
+ CoreTap.instance
+ end
ENV["GIT_AUTHOR_NAME"] = ENV["GIT_COMMITTER_NAME"] = "BrewTestBot"
ENV["GIT_AUTHOR_EMAIL"] = ENV["GIT_COMMITTER_EMAIL"] = "brew-test-bot@googlegroups.com"