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

    magit-read-worktree-directory-sibling: Fix typo
---
 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 4e9c6990b97..88ebcf6bb2c 100644
--- a/lisp/magit-worktree.el
+++ b/lisp/magit-worktree.el
@@ -74,7 +74,7 @@ just \"PREFIX_\".  Always forward PROMPT as-is."
          (name (file-name-nondirectory path)))
     (read-directory-name
      prompt (file-name-directory path) nil nil
-     (concat (if (string-match "/" name)
+     (concat (if (string-match "_" name)
                  (substring name 0 (match-beginning 0))
                name)
              "_"

Reply via email to