pull: loosen Jenkins Testing URL.

This commit is contained in:
Mike McQuaid 2016-08-14 12:06:37 +01:00
parent d5005f4d8b
commit 28fe84e5db

View File

@ -51,7 +51,7 @@ module Homebrew
issue = arg issue = arg
url = "https://github.com/Homebrew/homebrew-core/pull/#{arg}" url = "https://github.com/Homebrew/homebrew-core/pull/#{arg}"
tap = CoreTap.instance tap = CoreTap.instance
elsif (testing_match = arg.match %r{brew\.sh/job/Homebrew.*Testing/(\d+)/}) elsif (testing_match = arg.match %r{/job/Homebrew.*Testing/(\d+)/})
tap = ARGV.value("tap") tap = ARGV.value("tap")
tap = if tap && tap.start_with?("homebrew/") tap = if tap && tap.start_with?("homebrew/")
Tap.fetch("homebrew", tap.strip_prefix("homebrew/")) Tap.fetch("homebrew", tap.strip_prefix("homebrew/"))