[BUG] EnterWorktree name= fails: "Could not read the repository git config to neutralize filter drivers"
Status Closed — not planned
Reported on v2.1.285
Maintainer reply None cached
Workaround ✓ Mentioned in description ↑
Activity 0 comments · opened Sep 30, 2026 · closed Sep 30, 2026
What happened
EnterWorktree with name: "kernels-2026-09-30" failed twice with:
Could not read the repository git config to neutralize filter drivers
I expected it to create a worktree under .claude/worktrees/.
This workaround worked: git worktree add .claude/worktrees/<name> -b <name> origin/main, then EnterWorktree with path:.
Environment
- Claude Code 2.1.285
- macOS (Darwin 25.6.0), Apple Silicon
Repo state
.git/configis a plain 410-byte file, mode 0644, with the standardcom.apple.provenancexattr.- No
filter.*orincludeentries in the local, global or system gitconfig. git config --list --show-originreads all three config files without errors.- No permission deny rules or sandbox config in Claude Code settings.
- The first call was made with the session cwd in a subdirectory of the repo. The retry was made from the repo root. Both failed.
The session had no --debug log, so the underlying exception was not captured.