Skip to content

Commit 0aec74f

Browse files
author
Lluís Vilanova
committed
magit-stgit-show: Fix call to 'magit-show-commit'
The revision id is a single line, but returned as a list of lines by 'magit-stgit-lines'.
1 parent d179334 commit 0aec74f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

magit-stgit.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ Use ARGS to pass additional arguments."
502502
(defun magit-stgit-show (patch)
503503
"Show diff of a StGit patch."
504504
(interactive (magit-stgit-read-patches nil nil t t "Show patch"))
505-
(magit-show-commit (magit-stgit-lines "id" patch)))
505+
(magit-show-commit (car (magit-stgit-lines "id" patch))))
506506

507507
(magit-define-popup magit-stgit-undo-popup
508508
"Popup console for StGit undo."

0 commit comments

Comments
 (0)