Skip to content

Treat locked git worktrees as live when cleaning orphaned test databases - #69

Merged
aersam merged 3 commits into
mainfrom
64-locked-worktrees
Oct 31, 2026
Merged

aersam merged 3 commits into
mainfrom
64-locked-worktrees

Conversation

@aersam

@aersam aersam commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

Part of #64 (item 4), bumps to 0.17.3.

git worktree prune skips locked worktrees (e.g. on an unmounted drive), but live_worktree_branches required the path to exist, so clean_testdb(orphaned=True) would drop the database of a locked worktree whose path is missing. Locked worktrees now count as live.

Also adds tests that worktrees nested under <repo>/.claude/worktrees/<id> (with slashed branch names) are found from either checkout.

🤖 Generated with Claude Code

Claude Session: 928b2739-5a21-5fd4-b2a1-23bb76c373be

@aersam
aersam merged commit 545b621 into main Oct 31, 2026
2 checks passed
aersam and others added 3 commits October 31, 2026 08:08
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
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