Skip to content
This repository was archived by the owner on Feb 24, 2026. It is now read-only.

fix: preserve nested paths in wt-rm and wt-destroy#39

Merged
davidpoblador merged 1 commit intomainfrom
fix/wt-destroy-nested-paths
Feb 9, 2026
Merged

fix: preserve nested paths in wt-rm and wt-destroy#39
davidpoblador merged 1 commit intomainfrom
fix/wt-destroy-nested-paths

Conversation

@davidpoblador
Copy link
Member

Summary

  • Stop using basename on target argument in wt-rm and wt-destroy, which was truncating nested branch paths like fix/my-feature to just my-feature
  • Add --force to git worktree remove in wt-destroy only, since it's the destructive variant that already deletes remote branches

Closes #38

Test plan

  • just wt-add fix/test-nested then just wt-destroy fix/test-nested succeeds
  • just wt-add simple then just wt-rm simple succeeds
  • just wt-destroy main still refuses

🤖 Generated with Claude Code

Replace basename with direct target passthrough so nested branch
names like fix/my-feature are not truncated. Add --force to
wt-destroy since it is the destructive variant.

Closes #38

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@davidpoblador davidpoblador merged commit e485c94 into main Feb 9, 2026
1 check passed
@davidpoblador davidpoblador deleted the fix/wt-destroy-nested-paths branch February 9, 2026 11:00
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

wt-destroy fails for nested worktree paths and merged branches

1 participant