test-bot: always use Tap.fetch

This commit is contained in:
Xu Cheng 2016-06-27 20:03:37 +08:00
parent fc85a6fab6
commit 1668e47d1e
No known key found for this signature in database
GPG Key ID: C2A3860FA0B459CE

View File

@ -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"