Merge pull request #5024 from sjackman/coretap
CoreTap.default_remote: Use Linuxbrew/core [Linux]
This commit is contained in:
		
						commit
						78993d0692
					
				@ -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" ]]
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										9
									
								
								Library/Homebrew/extend/os/linux/tap.rb
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								Library/Homebrew/extend/os/linux/tap.rb
									
									
									
									
									
										Normal 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
 | 
			
		||||
							
								
								
									
										1
									
								
								Library/Homebrew/extend/os/tap.rb
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								Library/Homebrew/extend/os/tap.rb
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1 @@
 | 
			
		||||
require "extend/os/linux/tap" if OS.linux?
 | 
			
		||||
@ -735,3 +735,5 @@ class TapConfig
 | 
			
		||||
    end
 | 
			
		||||
  end
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
require "extend/os/tap"
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user