test-bot: fix tap URL detection from Jenkins.

This commit is contained in:
Mike McQuaid 2015-12-11 08:10:59 +00:00
parent e3dcf7776a
commit 65b197d2e0

View File

@ -56,7 +56,7 @@ module Homebrew
# Also can get tap from Jenkins GIT_URL.
url_path = git_url.sub(%r{^https?://github\.com/}, "").chomp("/")
begin
tap = Tap.fetch(tap)
tap = Tap.fetch(url_path)
return tap unless tap.core_formula_repository?
rescue
end