{"version":"2.1.337","anchor":"runner-git-helper-hardened","canonical_anchor":"runner-git-helper-hardened","heading":"Safer git handling when a runner resumes and pushes a branch","tier":"notice","area":"Self-Hosted Runner","scope":"org","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.337\/e\/runner-git-helper-hardened","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.337","markdown":"### Safer git handling when a runner resumes and pushes a branch\n\nRunner git commands now cap their output and stop cleanly, and a resumed branch is refused if it looks stale or altered\n\n**What**\n\nWhen Claude Code runs git for a runner, it now handles the git command more carefully:\n\n- Git's commit-graph cache is switched off for these commands.\n\n- Output is capped at 4,194,304 bytes (4 MiB).\n\n- A git process that must be stopped is asked to quit first, then forced to stop after 2 seconds.\n\nPreviously the git process was simply killed outright when its output grew too long.\n\nWhen a runner resumes a branch so it can push work on release, Claude Code now refuses to continue if any of these is true:\n\n- The branch no longer contains the last commit that was pushed.\n\n- The copy of the repository is partial, meaning only some of its history or files were downloaded.\n\n- Files inside `.claude` or `.mcp.json` differ.\n\n**Why**\n\nThe resume-and-push step is less likely to push onto a branch that has gone stale or been tampered with, including changes to the folders and files that configure Claude Code and its connected tools.\n\n- Area: Self-Hosted Runner\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 1\/5\n- Scope: org\n- Heads-up: no"}