From f9d42659ea951896733f49394a50366fb55eaafb Mon Sep 17 00:00:00 2001 From: Shaun Jackman Date: Wed, 18 Oct 2017 23:32:06 -0700 Subject: pull: Fix pull --bottle 1234 Fix the error: Error: undefined method `casecmp' for nil:NilClass --- Library/Homebrew/dev-cmd/pull.rb | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'Library/Homebrew/dev-cmd/pull.rb') diff --git a/Library/Homebrew/dev-cmd/pull.rb b/Library/Homebrew/dev-cmd/pull.rb index 79b9da9eb..7746e4db3 100644 --- a/Library/Homebrew/dev-cmd/pull.rb +++ b/Library/Homebrew/dev-cmd/pull.rb @@ -87,11 +87,8 @@ module Homebrew tap = nil ARGV.named.each do |arg| - if arg.to_i.positive? - issue = arg - url = "https://github.com/Homebrew/homebrew-core/pull/#{arg}" - tap = CoreTap.instance - elsif (testing_match = arg.match %r{/job/Homebrew.*Testing/(\d+)/}) + arg = "#{CoreTap.instance.default_remote}/pull/#{arg}" if arg.to_i.positive? + if (testing_match = arg.match %r{/job/Homebrew.*Testing/(\d+)/}) tap = ARGV.value("tap") tap = if tap&.start_with?("homebrew/") Tap.fetch("homebrew", tap.strip_prefix("homebrew/")) -- cgit v1.2.3