Re: [PATCH v2] fast-import: die on EOF after an inline M command
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Nov 24, 2026, 18:12 UTC
- Message-ID
- <xmqq33sqt7xw.fsf@gitster.g>
- In-Reply-To
- <pull.2323.v2.git.1795497145494.gitgitgadget@gmail.com>
"Wonseok Oh via GitGitGadget" <gitgitgadget@gmail.com> writes:
Show 6 quoted lines
> From: Wonseok Oh <marinelay7@gmail.com> > > After "M <mode> inline <path>", fast-import expects a "data" command. > If the input ends there, file_change_m() leaves its read loop without > reading any data and writes an uninitialized object ID into the tree. > fast-import then exits 0, and "git fsck" reports a missing blob.
This describes the problem accurately, but wouldn't the series at https://lore.kernel.org/git/20261122140347.41990-1-gitster@pobox.com/ solve this infinite loop, together with a few others?
Thanks.