v3 is rewritten to use refname_disposition[] to cover all invalid chars. Nguyễn Thái Ngọc Duy (1): worktree add: sanitize worktree names builtin/worktree.c | 37 ++++++++++++++++++++++++++++++++++++- refs.c | 6 ++++++ refs.h | 1 + t/t2025-worktree-add.sh | 7 +++++++ 4 files changed, 50 insertions(+), 1 deletion(-) -- 2.21.0.rc1.337.gdf7f8d0522