diff options
| author | Shaun Jackman | 2017-10-18 23:32:06 -0700 | 
|---|---|---|
| committer | Shaun Jackman | 2017-10-22 08:52:16 -0700 | 
| commit | f9d42659ea951896733f49394a50366fb55eaafb (patch) | |
| tree | ddf49eb4e7e65ff36132861679265c6bd9201d3b /Library/Homebrew/dev-cmd | |
| parent | a08f1c674803824e291c326adc2aca80068020e6 (diff) | |
| download | brew-f9d42659ea951896733f49394a50366fb55eaafb.tar.bz2 | |
pull: Fix pull --bottle 1234
Fix the error:
Error: undefined method `casecmp' for nil:NilClass
Diffstat (limited to 'Library/Homebrew/dev-cmd')
| -rw-r--r-- | Library/Homebrew/dev-cmd/pull.rb | 7 | 
1 files changed, 2 insertions, 5 deletions
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/"))  | 
