diff options
| author | Xu Cheng | 2016-06-27 20:03:37 +0800 |
|---|---|---|
| committer | Xu Cheng | 2016-06-27 20:03:37 +0800 |
| commit | 1668e47d1ea9e7b4c0297474bc18a2858c189850 (patch) | |
| tree | 58b71f90c8b651e734b4ffa6e2ea1d1e85c4042f /Library | |
| parent | fc85a6fab67df7b4412d6910ef7a1f6ff1299531 (diff) | |
| download | brew-1668e47d1ea9e7b4c0297474bc18a2858c189850.tar.bz2 | |
test-bot: always use `Tap.fetch`
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/dev-cmd/test-bot.rb | 7 |
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" |
