From 0f84b976bab94d66af1f8eb658b5ca824f8d49d4 Mon Sep 17 00:00:00 2001 From: Xu Cheng Date: Sat, 19 Dec 2015 19:10:22 +0800 Subject: 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"`. --- Library/Homebrew/cmd/pull.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Library/Homebrew/cmd/pull.rb') 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) -- cgit v1.2.3