From a2b80e4ec247fe386b650d7987b74b266d2eb491 Mon Sep 17 00:00:00 2001 From: Razvan Azamfirei Date: Mon, 17 Apr 2023 09:57:06 -0400 Subject: [PATCH] fix origin_branch_name --- Library/Homebrew/dev-cmd/bump-formula-pr.rb | 2 +- Library/Homebrew/utils/github.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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] || "-"