Skip to content

fix(git): remove worktrees with missing gitfile#60

Merged
markwylde merged 1 commit into
mainfrom
fix/remove-broken-worktree
Jul 17, 2026
Merged

fix(git): remove worktrees with missing gitfile#60
markwylde merged 1 commit into
mainfrom
fix/remove-broken-worktree

Conversation

@markwylde

Copy link
Copy Markdown
Owner

Summary

  • recover forced worktree deletion when the worktree's .git file is already missing or invalid
  • remove the orphaned directory before pruning Git's stale worktree registration
  • preserve non-forced deletion safety and existing handling for already-missing worktrees
  • add regression coverage for the exact broken-gitfile scenario, including untracked content

Testing

  • npm run test:git-worktree-status
  • npm run lint
  • npm run build:app

@markwylde
markwylde merged commit 414876a into main Jul 17, 2026
4 checks passed
@markwylde
markwylde deleted the fix/remove-broken-worktree branch July 17, 2026 22:06
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