aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/pull.rb
diff options
context:
space:
mode:
authorXu Cheng2015-12-19 19:10:22 +0800
committerXu Cheng2015-12-19 22:05:30 +0800
commit0f84b976bab94d66af1f8eb658b5ca824f8d49d4 (patch)
tree88c69232faf9d12f559b87249addad517df19fa9 /Library/Homebrew/cmd/pull.rb
parentf72d4f17221e2c313e7076ac0b7b79c0a76018dd (diff)
downloadbrew-0f84b976bab94d66af1f8eb658b5ca824f8d49d4.tar.bz2
move CoreFormulaRepository into separate file
For users whose local brew is at around 2015-06-11 to 2015-08-06, running `brew update` will emit following error: Error: uninitialized constant Formulary::CoreFormulaRepository This is caused by the same bug described in Homebrew/homebrew#42553. This commit workarounds this issue and restores `brew update` compatibility for users mentioned above. Also cleanup legacy `require "cmd/tap"`.
Diffstat (limited to 'Library/Homebrew/cmd/pull.rb')
-rw-r--r--Library/Homebrew/cmd/pull.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/pull.rb b/Library/Homebrew/cmd/pull.rb
index bcfcb7d11..1454f9938 100644
--- a/Library/Homebrew/cmd/pull.rb
+++ b/Library/Homebrew/cmd/pull.rb
@@ -3,7 +3,8 @@
require "utils"
require "formula"
-require "cmd/tap"
+require "tap"
+require "core_formula_repository"
module Homebrew
def pull_url(url)