Skip to content

Fix worktree directory name to replace slashes with hyphens#1

Merged
shokkunrf merged 1 commit into
developfrom
fix-wt-dir-name
Feb 24, 2026
Merged

Fix worktree directory name to replace slashes with hyphens#1
shokkunrf merged 1 commit into
developfrom
fix-wt-dir-name

Conversation

@shokkunrf
Copy link
Copy Markdown
Owner

Summary

  • When a branch name contained / (e.g., feat/wd-update), the worktree directory name was interpreted as a nested path, causing write_relative_paths() to fail with "Directory nonexistent"
  • Added sanitize_branch() function to replace / with - in directory names, applied to both cmd_clone() and cmd_add()

@shokkunrf shokkunrf self-assigned this Feb 24, 2026
@shokkunrf shokkunrf merged commit 13e014a into develop Feb 24, 2026
2 checks passed
@shokkunrf shokkunrf deleted the fix-wt-dir-name branch February 24, 2026 14:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant