aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
authorXu Cheng2016-03-07 19:58:49 +0800
committerXu Cheng2016-03-07 20:00:35 +0800
commit6f9f3faef3d566641b3fa18e887819da7889018a (patch)
tree0b7f7505c13f4685a48eeebd4816a90749af25d4 /Library/Homebrew/cmd
parent5b638901987655ddeb0a3a860cfbe50c67112516 (diff)
downloadbrew-6f9f3faef3d566641b3fa18e887819da7889018a.tar.bz2
test-bot: fix wrong tap argument check
Diffstat (limited to 'Library/Homebrew/cmd')
-rw-r--r--Library/Homebrew/cmd/test-bot.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/cmd/test-bot.rb b/Library/Homebrew/cmd/test-bot.rb
index 71a0257ab..38779531d 100644
--- a/Library/Homebrew/cmd/test-bot.rb
+++ b/Library/Homebrew/cmd/test-bot.rb
@@ -49,7 +49,7 @@ module Homebrew
bot_argv = ENV["UPSTREAM_BOT_PARAMS"].split " "
bot_argv.extend HomebrewArgvExtension
if tap = bot_argv.value("tap")
- return Tap.fetch(tap) if url_path =~ HOMEBREW_TAP_REGEX
+ return Tap.fetch(tap)
end
end
@@ -57,7 +57,7 @@ module Homebrew
# Also can get tap from Jenkins GIT_URL.
url_path = git_url.sub(%r{^https?://github\.com/}, "").chomp("/").sub(%r{\.git$}, "")
begin
- return Tap.fetch(url_path)
+ return Tap.fetch(url_path) if url_path =~ HOMEBREW_TAP_REGEX
rescue
end
end