{"version":"2.1.332","anchor":"git-commands-now-fail-closed-when-the-repository-is-unsafe","canonical_anchor":"git-commands-now-fail-closed-when-the-repository-is-unsafe","heading":"Git checks now play safe when git refuses to run","tier":"notice","area":"Git","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.332\/e\/git-commands-now-fail-closed-when-the-repository-is-unsafe","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.332","markdown":"### Git checks now play safe when git refuses to run\n\nSome git status checks now stop or give a cautious answer when git refuses, instead of ignoring how git exited\n\n**What**\n\nSome of the checks Claude Code makes on a git repository now pay attention to git refusing to run. When that happens they either stop with an error, such as \"git could not list the changed files\", or give a cautious answer. The check for commits that have not been pushed yet now falls back to `git merge-base --is-ancestor`. Before, these checks ignored how git exited.\n\n**Why**\n\nChecks for uncommitted changes and unpushed commits can behave differently in unusual repositories.\n\n- Area: Git\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}