{"version":"2.1.332","anchor":"gitignore-and-secret-path-check-handles-nested-repos","canonical_anchor":"gitignore-and-secret-path-check-handles-nested-repos","heading":"Gitignore check now accounts for repositories nested inside other repositories","tier":"notice","area":"Permissions","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.332\/e\/gitignore-and-secret-path-check-handles-nested-repos","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.332","markdown":"### Gitignore check now accounts for repositories nested inside other repositories\n\nWhen deciding whether a path is git-ignored, Claude Code now considers the repositories above it, not just the parent .gitignore file\n\n**What**\n\nClaude Code checks whether a path is ignored by git. A `.gitignore` file lists the paths git should leave out. This check also helps it treat paths that may hold secrets with care. It now takes the enclosing repositories into account when a repository sits inside another one. Before, it read the `.gitignore` of the parent folder directly. Claude Code can also now tell whether a folder is the root of a git repository.\n\n**Why**\n\nThis can change which paths Claude Code treats as ignored when you work in nested repositories.\n\n- Area: Permissions\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}