From edf000e4cd30c3626ccc28c52ed32f2d84a200dd Mon Sep 17 00:00:00 2001 From: Xu Cheng Date: Sun, 3 Apr 2016 18:34:17 +0800 Subject: Core/formula separation Part 2(b) * move shell completion scripts to where can be auto picked up Let's use switching new remote as opportunity to put shell completion scripts to where they should be and avoid git conflict during the process. * add Library/Formula and Library/Aliases symlinks Formulae and Aliases has been relocated to homebrew/core tap. The symlinks are pointed to new location to keep backward compatibility. * remove formula_renames and tap_migrations They have been replaced by the json files in the core tap. * update: set new remote * bump Homebrew version to 0.9.9 --- Library/Homebrew/cmd/update.sh | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'Library/Homebrew/cmd') diff --git a/Library/Homebrew/cmd/update.sh b/Library/Homebrew/cmd/update.sh index d0da09575..49dcb5038 100644 --- a/Library/Homebrew/cmd/update.sh +++ b/Library/Homebrew/cmd/update.sh @@ -7,26 +7,26 @@ git() { } git_init_if_necessary() { + if [[ -n "$HOMEBREW_OSX" ]] + then + OFFICIAL_REMOTE="https://github.com/Homebrew/brew.git" + else + OFFICIAL_REMOTE="https://github.com/Linuxbrew/brew.git" + fi + if [[ ! -d ".git" ]] then set -e trap '{ rm -rf .git; exit 1; }' EXIT git init git config --bool core.autocrlf false - git config remote.origin.url https://github.com/Homebrew/homebrew.git + git config remote.origin.url "$OFFICIAL_REMOTE" git config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*" git fetch --force --depth=1 origin refs/heads/master:refs/remotes/origin/master git reset --hard origin/master SKIP_FETCH_HOMEBREW_REPOSITORY=1 set +e trap - EXIT - return - fi - - if [[ "$(git remote show origin -n)" = *"mxcl/homebrew"* ]] - then - git remote set-url origin https://github.com/Homebrew/homebrew.git && - git remote set-url --delete origin ".*mxcl\/homebrew.*" fi } -- cgit v1.2.3