Skip to content

fix: do not bring back a removed worktree's folder - #198

Merged
lorem-dev merged 1 commit into
developfrom
fix/store-removed-root
Nov 26, 2026
Merged

lorem-dev merged 1 commit into
developfrom
fix/store-removed-root

Conversation

@lorem-dev

Copy link
Copy Markdown
Owner

After git worktree remove, folders came back under .worktrees/<name>/ holding only .duolog/.gitignore. store.Open is the only writer of that file, and it created its root with MkdirAll, so any command that still named a removed worktree (a peer's recorded work dir, a delegate or lead root) made the folder again.

  • store.Open now needs the root to exist and creates only .duolog inside it; a missing root, or a file in its place, is an error.
  • Test: a missing root stays missing.

For the next release; no version bump.

🤖 Generated with Claude Code

store.Open created its root with MkdirAll before it wrote
.duolog/.gitignore. A peer, delegate or lead command that still named a
worktree removed with git worktree remove made the folder again, with
only that file in it. Open now needs the root to exist and creates only
.duolog inside it; a missing root is an error.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
AI-Assisted: code, tests, docs
@lorem-dev
lorem-dev merged commit 5659cc7 into develop Nov 26, 2026
13 checks passed
@lorem-dev
lorem-dev deleted the fix/store-removed-root branch November 26, 2026 12:00
This was referenced Nov 27, 2026
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