aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
authorMike McQuaid2015-12-11 08:08:51 +0000
committerMike McQuaid2015-12-11 08:08:51 +0000
commite3dcf7776ab5854cf7e0e28527cc70b79aec2c60 (patch)
tree3170fdeec5d5ef056ae23fd79494b6d420c1d569 /Library/Homebrew/cmd
parent5b98a6c67da8bcb4aaaaf0ebb28887b6cfa0881c (diff)
downloadbrew-e3dcf7776ab5854cf7e0e28527cc70b79aec2c60.tar.bz2
Revert "test-bot: remove dead code."
This reverts commit 373da8666e633b06d8a5bb98621461b700f4b2d7.
Diffstat (limited to 'Library/Homebrew/cmd')
-rw-r--r--Library/Homebrew/cmd/test-bot.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/test-bot.rb b/Library/Homebrew/cmd/test-bot.rb
index ab2a86c3b..b7d156837 100644
--- a/Library/Homebrew/cmd/test-bot.rb
+++ b/Library/Homebrew/cmd/test-bot.rb
@@ -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