aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2014-11-23 14:38:40 +0000
committerMike McQuaid2014-11-23 14:38:40 +0000
commit7a2a217ba7144e4adf208e1f3d09ce62c59f67b7 (patch)
tree1191f6d9f09f772abeefe361f6470f1e455dd07e /Library
parentcafbca0ff0335870f27efdc1d0397943be985a7a (diff)
downloadhomebrew-7a2a217ba7144e4adf208e1f3d09ce62c59f67b7.tar.bz2
test-bot: fix tap-from-url regex usage.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/test-bot.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/Library/Homebrew/cmd/test-bot.rb b/Library/Homebrew/cmd/test-bot.rb
index 36b73b626..ebebd959a 100644
--- a/Library/Homebrew/cmd/test-bot.rb
+++ b/Library/Homebrew/cmd/test-bot.rb
@@ -549,8 +549,9 @@ module Homebrew
git_url = ENV['UPSTREAM_GIT_URL'] || ENV['GIT_URL']
if !tap && git_url
# Also can get tap from Jenkins GIT_URL.
- /([\w-]+\/homebrew-[\w-]+)/ =~ git_url
- tap = $1
+ url_path = git_url.gsub(%r{^https?://github\.com/}, "").gsub(%r{/$}, "")
+ HOMEBREW_TAP_ARGS_REGEX =~ url_path
+ tap = "#{$1}/#{$3}" if $1 && $3
end
if Pathname.pwd == HOMEBREW_PREFIX and ARGV.include? "--cleanup"