Skip to content

Commit

Permalink
magit-branch-rename: Use new forge--split-forge-url
Browse files Browse the repository at this point in the history
`forge--forge-remote-p' has been removed.
  • Loading branch information
tarsius committed Feb 11, 2024
1 parent 90ee54b commit 12c5a9d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lisp/magit-branch.el
Original file line number Diff line number Diff line change
Expand Up @@ -785,8 +785,10 @@ the remote."
(not (eq magit-branch-rename-push-target 'local-only))
(or (not (eq magit-branch-rename-push-target 'forge-only))
(and (require (quote forge) nil t)
(fboundp 'forge--forge-remote-p)
(forge--forge-remote-p remote))))
(fboundp 'forge--split-forge-url)
(and-let* ((url (magit-git-string
"remote" "get-url" remote)))
(forge--split-forge-url url)))))
(let ((old-target (magit-get-push-branch old t))
(new-target (magit-get-push-branch new t))
(remote (magit-get-push-remote new)))
Expand Down

0 comments on commit 12c5a9d

Please sign in to comment.