CoreTap.default_remote: Use Linuxbrew/core [Linux]

This commit is contained in:
Shaun Jackman 2018-10-02 15:43:16 -07:00
parent f354160c71
commit fdcdf7cb5c
4 changed files with 18 additions and 1 deletions

View File

@ -24,7 +24,12 @@ git() {
git_init_if_necessary() {
BREW_OFFICIAL_REMOTE="https://github.com/Homebrew/brew"
if [[ -n "$HOMEBREW_MACOS" ]] || [[ -n "$HOMEBREW_FORCE_HOMEBREW_ORG" ]]
then
CORE_OFFICIAL_REMOTE="https://github.com/Homebrew/homebrew-core"
else
CORE_OFFICIAL_REMOTE="https://github.com/Linuxbrew/homebrew-core"
fi
safe_cd "$HOMEBREW_REPOSITORY"
if [[ ! -d ".git" ]]

View File

@ -0,0 +1,9 @@
class CoreTap < Tap
def default_remote
if ENV["HOMEBREW_FORCE_HOMEBREW_ORG"]
"https://github.com/Homebrew/homebrew-core".freeze
else
"https://github.com/Linuxbrew/homebrew-core".freeze
end
end
end

View File

@ -0,0 +1 @@
require "extend/os/linux/tap" if OS.linux?

View File

@ -735,3 +735,5 @@ class TapConfig
end
end
end
require "extend/os/tap"