Git inside synced directories runs under a hardened layout with filters, hooks and protocols locked down.
What's wrong with this entry?
Before running git inside a synced directory, Claude Code reads the repository layout and checks it against the filesystem, pins off filter programs and hooks, restricts which protocols git may use, and disables lazy fetch, replace refs and grafts. Git is refused outright if a config file inside the working tree contributes settings, or if the git directory is not where git says it should be. Outcomes are recorded as telemetry.
- Aimed at repositories synced from elsewhere, where the checked-out files could otherwise redirect git into running repo-supplied commands.
tengu_dir_sync_git_layout
Strings lifted out of the shipped bundle, so the claim above can be checked against them.