Skip to content

Commit

Permalink
forge-get-url(commit): Fix getting remote name
Browse files Browse the repository at this point in the history
  • Loading branch information
tarsius committed Dec 1, 2024
1 parent 079d2d6 commit 8f9e949
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
are shown. Previously all topics that are marked as done were shown
in italic. #726

- Fixed visiting commit in a browser.

* v0.4.4 2024-10-01

Thoughts and whitespace.
Expand Down
2 changes: 1 addition & 1 deletion lisp/forge-commands.el
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ argument also offer closed pull-requests."
(unless (magit-list-containing-branches
commit "-r" (concat (oref repo remote) "/*"))
(if-let* ((branch (car (magit-list-containing-branches commit "-r")))
(remote (cdr (magit-split-branch-name branch))))
(remote (car (magit-split-branch-name branch))))
(setq repo (forge-get-repository :stub remote))
(message "%s does not appear to be available on any remote. %s"
commit "You might have to push it first.")))
Expand Down

0 comments on commit 8f9e949

Please sign in to comment.