Fix 'undefined method git_default_origin_branch?'
This commit is contained in:
		
							parent
							
								
									775cddf6d9
								
							
						
					
					
						commit
						6f813eba13
					
				@ -545,9 +545,9 @@ module Homebrew
 | 
			
		||||
        return unless Utils::Git.available?
 | 
			
		||||
 | 
			
		||||
        commands = Tap.map do |tap|
 | 
			
		||||
          next if tap.path.git_default_origin_branch?
 | 
			
		||||
          next if tap.git_repo.default_origin_branch?
 | 
			
		||||
 | 
			
		||||
          "git -C $(brew --repo #{tap.name}) checkout #{tap.path.git_origin_branch}"
 | 
			
		||||
          "git -C $(brew --repo #{tap.name}) checkout #{tap.git_repo.origin_branch_name}"
 | 
			
		||||
        end.compact
 | 
			
		||||
 | 
			
		||||
        return if commands.blank?
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user