You'll noticeTier: how much it should matter to you
2Useful: my rating, 1 to 5
2Signal: worth watching, 1 to 5
Git SafetyArea: what it touches
ImprovementsKind: in v2.1.247,
ImprovementsSection of the release
What
Reading a repository's config now reads at most 1,000,000 bytes and, when more remains, discards the trailing partial line before parsing, so a pathologically large config cannot pull an unbounded amount into memory.
Details
The .git file and commondir readers moved to the same capped reader, using sniffEncoding: !0, withBytes: !0.
Those two return null when the read was truncated, so a truncated prefix is treated as no answer rather than parsed as a path.
Evidence
sniffEncoding
Strings lifted out of the shipped bundle, so the claim above can be checked against them.