aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/dev-cmd
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/dev-cmd')
-rw-r--r--Library/Homebrew/dev-cmd/test-bot.rb7
1 files changed, 1 insertions, 6 deletions
diff --git a/Library/Homebrew/dev-cmd/test-bot.rb b/Library/Homebrew/dev-cmd/test-bot.rb
index 8a20bb594..d3a2c2a09 100644
--- a/Library/Homebrew/dev-cmd/test-bot.rb
+++ b/Library/Homebrew/dev-cmd/test-bot.rb
@@ -796,12 +796,7 @@ module Homebrew
end
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
+ tap = Tap.fetch(first_formula_name.rpartition("/").first.chuzzle || "homebrew/core")
ENV["GIT_AUTHOR_NAME"] = ENV["GIT_COMMITTER_NAME"] = "BrewTestBot"
ENV["GIT_AUTHOR_EMAIL"] = ENV["GIT_COMMITTER_EMAIL"] = "brew-test-bot@googlegroups.com"