Revert "test-bot: remove dead code."

This reverts commit 373da8666e633b06d8a5bb98621461b700f4b2d7.
This commit is contained in:
Mike McQuaid 2015-12-11 08:08:51 +00:00
parent 5b98a6c67d
commit e3dcf7776a

View File

@ -52,6 +52,16 @@ module Homebrew
end
end
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("/")
begin
tap = Tap.fetch(tap)
return tap unless tap.core_formula_repository?
rescue
end
end
# return nil means we are testing core repo.
end