fix origin_branch_name

This commit is contained in:
Razvan Azamfirei 2023-04-17 09:57:06 -04:00
parent 6f813eba13
commit a2b80e4ec2
No known key found for this signature in database
GPG Key ID: 62E97BFCB12046BD
2 changed files with 2 additions and 2 deletions

View File

@ -123,7 +123,7 @@ module Homebrew
tap_remote_repo = formula.tap.full_name || formula.tap.remote_repo tap_remote_repo = formula.tap.full_name || formula.tap.remote_repo
remote = "origin" remote = "origin"
remote_branch = formula.tap.path.git_origin_branch remote_branch = formula.tap.git_repo.origin_branch_name
previous_branch = "-" previous_branch = "-"
check_open_pull_requests(formula, tap_remote_repo, args: args) check_open_pull_requests(formula, tap_remote_repo, args: args)

View File

@ -576,7 +576,7 @@ module GitHub
old_contents = info[:old_contents] old_contents = info[:old_contents]
additional_files = info[:additional_files] || [] additional_files = info[:additional_files] || []
remote = info[:remote] || "origin" 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] branch = info[:branch_name]
commit_message = info[:commit_message] commit_message = info[:commit_message]
previous_branch = info[:previous_branch] || "-" previous_branch = info[:previous_branch] || "-"