aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/dev-cmd/pull.rb
diff options
context:
space:
mode:
authorMike McQuaid2017-10-22 19:40:24 +0100
committerGitHub2017-10-22 19:40:24 +0100
commit7e4f42369f40a98e4696c2ddba91ea5728fc8a7e (patch)
tree7c4057ac9d2034598dd32fa02aaec54e98622294 /Library/Homebrew/dev-cmd/pull.rb
parentce0e96c3205e10fe975b8c107092c290b9373af9 (diff)
parentf9d42659ea951896733f49394a50366fb55eaafb (diff)
downloadbrew-7e4f42369f40a98e4696c2ddba91ea5728fc8a7e.tar.bz2
Merge pull request #3337 from sjackman/pull
pull: Fix pull --bottle 1234
Diffstat (limited to 'Library/Homebrew/dev-cmd/pull.rb')
-rw-r--r--Library/Homebrew/dev-cmd/pull.rb7
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/"))