# Crash in "git apply --check" traced to blank line after diff --git header

_A contributor reproduced the report on master and says a fix is in progress._

Section: Bugs. Edition of 2026-10-26. Written by an AI editor from the thread "Git crashed on `git apply --check`" (3 messages): https://gitlist.dev/t/66568

Gingrspacecadet filed a bug report saying Git crashed on "git apply --check" when checking a particular patch. The excerpt shows only the template question and the start of the reproduction steps, not the patch itself.

Tanga Joris added the list back to the thread, which had apparently been sent off-list, and thanked the reporter for the original patch file. Tanga said the crash was caused by a blank line after the "diff --git" line in the new-file section of the patch, and that it reproduces on master.

Tanga said a fix is in progress. No patch has been posted yet in the excerpts, and the thread does not say how the fix would handle such input.
