From 1668e47d1ea9e7b4c0297474bc18a2858c189850 Mon Sep 17 00:00:00 2001 From: Xu Cheng Date: Mon, 27 Jun 2016 20:03:37 +0800 Subject: [PATCH] test-bot: always use `Tap.fetch` --- Library/Homebrew/dev-cmd/test-bot.rb | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/Library/Homebrew/dev-cmd/test-bot.rb b/Library/Homebrew/dev-cmd/test-bot.rb index 8a20bb5940..d3a2c2a09c 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"