branch: elpa/magit
commit 5d0d61807d8773767919338626f1d871e556e66d
Author: Jonas Bernoulli <[email protected]>
Commit: Jonas Bernoulli <[email protected]>

    magit-worktree-status: Error earlier if user makes no selection
---
 lisp/magit-worktree.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lisp/magit-worktree.el b/lisp/magit-worktree.el
index 80b3a0fec9a..f187e0cadd8 100644
--- a/lisp/magit-worktree.el
+++ b/lisp/magit-worktree.el
@@ -226,7 +226,8 @@ then show it in Dired instead."
               "Show status for worktree"
               (cl-delete (directory-file-name (magit-toplevel))
                          (magit-list-worktrees)
-                         :test #'equal :key #'car)))))
+                         :test #'equal :key #'car)
+              nil t))))
   (magit-diff-visit-directory worktree))
 
 (defun magit--expand-worktree (directory)

Reply via email to