From: Tanga Joris Date: Sat, 24 Oct 2026 06:10:17 GMT Subject: Re: Git crashed on `git apply --check` Message-ID: <20261024061017.100191-1-tangajoris@gmail.com> In-Reply-To: Hi, Thanks for the report. I was unable to reproduce it with the patch as quoted (the "diff --git" line is wrapped in your mail), but I can trigger the same assertion on current master, and on 2.43, when the "--- /dev/null" line comes before "new file mode" in the header: diff --git a/n.txt b/n.txt --- /dev/null +++ b/n.txt new file mode 100644 @@ -0,0 +1 @@ +hello Was your patch handwritten or generated by a tool, and could you please check whether its header lines are in that order? If you can, please attach the exact file so that we can confirm it is the same problem. Thanks, Tanga