Merge pull request #15247 from dduugg/15245

This commit is contained in:
Carlo Cabrera 2023-04-17 21:47:21 +08:00 committed by GitHub
commit 140273badb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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?