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
Windows: new worktrees fail with 'Filename too long' on TUnit.Templates.Tests snapshots #7320
On Windows, git worktree add -b <branch> D:/git/TUnit-worktrees/issue-7190-generator-test-parse-options origin/main failed partway through checkout:
error: unable to create file tests/TUnit.Templates.Tests/Snapshots/InstantiationTest.TUnit.Aspire.Starter._.verified/TUnit.Aspire.Starter/TUnit.Aspire.Starter.WebApp/wwwroot/lib/bootstrap/dist/css/bootstrap-grid.rtl.min.css.map: Filename too long
fatal: Could not reset index file to revision 'HEAD'.
The worktree was not registered, but the branch was left behind. The template snapshot paths exceed MAX_PATH once they sit under <repo-parent>/TUnit-worktrees/<name>/.
Workaround used
git -c core.longpaths=true worktree add --no-checkout ..., then git config core.longpaths true (this writes the shared repo config), then git checkout.
Expected
The worktree lifecycle docs (scripts/WorktreeLifecycle.md, AGENTS.md § Local worktree lifecycle) or the lock and worktree scripts should handle this on Windows: either document setting core.longpaths=true, or set it when creating worktrees, so agents do not hit this on every new checkout.
Activity
docs: clarify failed checkout recovery for #7320
docs: enable Windows long paths before worktree checkout (#7416)