test-bot: fix resolve_test_tap

This commit is contained in:
Xu Cheng 2015-12-11 21:46:02 +08:00
parent 43713afa5f
commit 71e023a2c6

View File

@ -53,7 +53,7 @@ module Homebrew
if git_url = ENV["UPSTREAM_GIT_URL"] || ENV["GIT_URL"]
# Also can get tap from Jenkins GIT_URL.
url_path = git_url.sub(%r{^https?://github\.com/}, "").chomp("/")
url_path = git_url.sub(%r{^https?://github\.com/}, "").chomp("/").sub(%r{\.git$}, "")
begin
tap = Tap.fetch(url_path)
return tap unless tap.core_formula_repository?