test-bot: always use Tap.fetch
This commit is contained in:
parent
fc85a6fab6
commit
1668e47d1e
@ -796,12 +796,7 @@ module Homebrew
|
|||||||
end
|
end
|
||||||
|
|
||||||
first_formula_name = bottles_hash.keys.first
|
first_formula_name = bottles_hash.keys.first
|
||||||
tap = if first_formula_name.include? "/"
|
tap = Tap.fetch(first_formula_name.rpartition("/").first.chuzzle || "homebrew/core")
|
||||||
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_NAME"] = ENV["GIT_COMMITTER_NAME"] = "BrewTestBot"
|
||||||
ENV["GIT_AUTHOR_EMAIL"] = ENV["GIT_COMMITTER_EMAIL"] = "brew-test-bot@googlegroups.com"
|
ENV["GIT_AUTHOR_EMAIL"] = ENV["GIT_COMMITTER_EMAIL"] = "brew-test-bot@googlegroups.com"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user