Fix 'undefined method git_default_origin_branch?'

This commit is contained in:
Douglas Eichelberger 2023-04-17 06:32:15 -07:00
parent 775cddf6d9
commit 6f813eba13

View File

@ -545,9 +545,9 @@ module Homebrew
return unless Utils::Git.available? return unless Utils::Git.available?
commands = Tap.map do |tap| 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 end.compact
return if commands.blank? return if commands.blank?