branch: elpa/magit
commit ca5b77284adf8d9af3f98eb669bd47bbf24c46f6
Author: Jonas Bernoulli <jo...@bernoul.li>
Commit: Jonas Bernoulli <jo...@bernoul.li>

    magit-worktree-delete: Fix confirmation prompt
    
    Closes #5286.
---
 lisp/magit-worktree.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/magit-worktree.el b/lisp/magit-worktree.el
index c55b1787947..67eeaf741f5 100644
--- a/lisp/magit-worktree.el
+++ b/lisp/magit-worktree.el
@@ -113,7 +113,7 @@ The primary worktree cannot be deleted."
       (user-error "Deleting %s would delete the shared .git directory" 
worktree)
     (let ((primary (file-name-as-directory (caar (magit-list-worktrees)))))
       (magit-confirm-files (if magit-delete-by-moving-to-trash 'trash 'delete)
-                           (list "worktree"))
+                           (list worktree))
       (when (file-exists-p worktree)
         (let ((delete-by-moving-to-trash magit-delete-by-moving-to-trash))
           (delete-directory worktree t magit-delete-by-moving-to-trash)))

Reply via email to