aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/global.rb
diff options
context:
space:
mode:
authorXu Cheng2015-12-13 01:25:58 +0800
committerXu Cheng2015-12-13 01:29:52 +0800
commit3cc101ec5ea20f46e104aba26d3dc16b7d763fca (patch)
tree926558a7a58b2b6b9de8470a31e1e39250da2d10 /Library/Homebrew/global.rb
parentc347d40f1be1b6c2886af41b09e78265a6abea29 (diff)
downloadbrew-3cc101ec5ea20f46e104aba26d3dc16b7d763fca.tar.bz2
pull: use tap object
Fix the regression introduced by Homebrew/homebrew#46735.
Diffstat (limited to 'Library/Homebrew/global.rb')
-rw-r--r--Library/Homebrew/global.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/Library/Homebrew/global.rb b/Library/Homebrew/global.rb
index 277994476..d173e7df2 100644
--- a/Library/Homebrew/global.rb
+++ b/Library/Homebrew/global.rb
@@ -41,6 +41,7 @@ module Homebrew
alias_method :failed?, :failed
end
+HOMEBREW_PULL_API_REGEX = %r{https://api\.github\.com/repos/([\w-]+)/homebrew(-[\w-]+)?/pulls/(\d+)}
HOMEBREW_PULL_OR_COMMIT_URL_REGEX = %r[https://github\.com/([\w-]+)/homebrew(-[\w-]+)?/(?:pull/(\d+)|commit/[0-9a-fA-F]{4,40})]
require "compat" unless ARGV.include?("--no-compat") || ENV["HOMEBREW_NO_COMPAT"]