branch: elpa/magit
commit 6654bd7b3d176054fe123412eab90349b7d7bfc8
Author: Jonas Bernoulli <[email protected]>
Commit: Jonas Bernoulli <[email protected]>
magit-branch-delete: Clarify confusing operation
---
lisp/magit-branch.el | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/lisp/magit-branch.el b/lisp/magit-branch.el
index fb3cc9a7c17..0c5e63a4cc9 100644
--- a/lisp/magit-branch.el
+++ b/lisp/magit-branch.el
@@ -608,7 +608,9 @@ prompt is confusing."
(user-error "Abort"))))
(list branches force)))
(let ((refs (mapcar #'magit-ref-fullname branches)))
- (when-let ((ambiguous (--remove it refs)))
+ ;; If a member of refs is nil, that means that
+ ;; the respective branch name is ambiguous.
+ (when-let ((ambiguous (seq-filter #'null refs)))
(user-error
"%s ambiguous. Please cleanup using git directly."
(let ((len (length ambiguous)))