You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit b28a21f
Browse filesBrowse the repository at this point in the historyBrowse files
fix(server): worktree cleanup no longer blocked by links and build output
Automatic worktree cleanup refused to remove any worktree with an ignored
path other than node_modules/. Setup scripts that symlink .env into the
worktree, and any build output (Flutter's build/ and .dart_tool/), made
every worktree permanently ineligible.
Ignored symlinks and junctions no longer block removal. A new
worktreeDisposablePaths setting (gitignore patterns, default node_modules/)
lists ignored paths that are safe to delete, machine-wide or per project
through custom worktree cleanup rules. Git matches the patterns. Every
other ignored or untracked file still keeps the worktree, now including
untracked files hidden by status.showUntrackedFiles=no.
Git for Windows reports success from `git worktree remove` but leaves NTFS
junctions and their parent directories behind, so a resumed thread found a
stub instead of recreating its checkout. removeWorktree now deletes that
leftover with fs.rm, which unlinks links without following them.
Fixes#13836
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
0 commit comments