Merge pull request #15082 from scientificworld/master

bump-*-pr: fix an issue when using on taps with custom remote
This commit is contained in:
Mike McQuaid 2023-03-29 16:13:39 +01:00 committed by GitHub
commit f4ee196f90
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -196,7 +196,7 @@ module Homebrew
end
def check_pull_requests(cask, state:, args:, version: nil)
tap_remote_repo = cask.tap.remote_repo || cask.tap.full_name
tap_remote_repo = cask.tap.full_name || cask.tap.remote_repo
GitHub.check_for_duplicate_pull_requests(cask.token, tap_remote_repo,
state: state,
version: version,

View File

@ -121,7 +121,7 @@ module Homebrew
# spamming during normal output.
Homebrew.install_bundler_gems!
tap_remote_repo = formula.tap.remote_repo
tap_remote_repo = formula.tap.full_name || formula.tap.remote_repo
remote = "origin"
remote_branch = formula.tap.path.git_origin_branch
previous_branch = "-"