diff --git a/Library/Homebrew/dev-cmd/bump-formula-pr.rb b/Library/Homebrew/dev-cmd/bump-formula-pr.rb index 519cf2d4b4..abb1465d88 100644 --- a/Library/Homebrew/dev-cmd/bump-formula-pr.rb +++ b/Library/Homebrew/dev-cmd/bump-formula-pr.rb @@ -123,7 +123,7 @@ module Homebrew tap_remote_repo = formula.tap.full_name || formula.tap.remote_repo remote = "origin" - remote_branch = formula.tap.path.git_origin_branch + remote_branch = formula.tap.git_repo.origin_branch_name previous_branch = "-" check_open_pull_requests(formula, tap_remote_repo, args: args) diff --git a/Library/Homebrew/utils/github.rb b/Library/Homebrew/utils/github.rb index eda003b560..e6d3525e5d 100644 --- a/Library/Homebrew/utils/github.rb +++ b/Library/Homebrew/utils/github.rb @@ -576,7 +576,7 @@ module GitHub old_contents = info[:old_contents] additional_files = info[:additional_files] || [] remote = info[:remote] || "origin" - remote_branch = info[:remote_branch] || tap.path.git_origin_branch + remote_branch = info[:remote_branch] || tap.git_repo.origin_branch_name branch = info[:branch_name] commit_message = info[:commit_message] previous_branch = info[:previous_branch] || "-"