Merge pull request #2546 from MikeMcQuaid/force-homebrew-org

Allow forcing Homebrew GitHub organisation.
This commit is contained in:
Mike McQuaid 2017-04-25 11:09:51 +01:00 committed by GitHub
commit 74c39b2310
2 changed files with 6 additions and 8 deletions

View File

@ -23,7 +23,7 @@ git() {
}
git_init_if_necessary() {
if [[ -n "$HOMEBREW_MACOS" ]]
if [[ -n "$HOMEBREW_MACOS" ]] || [[ -n "$HOMEBREW_FORCE_HOMEBREW_ORG" ]]
then
BREW_OFFICIAL_REMOTE="https://github.com/Homebrew/brew"
CORE_OFFICIAL_REMOTE="https://github.com/Homebrew/homebrew-core"

View File

@ -526,13 +526,11 @@ end
# A specialized {Tap} class for the core formulae
class CoreTap < Tap
if OS.mac?
def default_remote
"https://github.com/Homebrew/homebrew-core"
end
else
def default_remote
"https://github.com/Linuxbrew/homebrew-core"
def default_remote
if OS.mac? || ENV["$HOMEBREW_FORCE_HOMEBREW_ORG"]
"https://github.com/Homebrew/homebrew-core".freeze
else
"https://github.com/Linuxbrew/homebrew-core".freeze
end
end