Re: [PATCH v2] fast-import: die on EOF after an inline M command
- From
- Wonseok Oh <wonseok_oh@korea.ac.kr>
- Date
- Nov 25, 2026, 01:46 UTC
- Message-ID
- <CAD2pp5v4dkHbwxZ9UH0jPeG+3hMaYCQ__QpN9wSUC1L1tZDL=g@mail.gmail.com>
- In-Reply-To
- <xmqq33sqt7xw.fsf@gitster.g>
Hello Junio,
> 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?
With your series, v1 patch no longer gets stuck in an infinite loop on the unterminated "cat-blob" input.
If you prefer v1 on top of your series, I'll go back to it.
Thanks.
2026년 11월 25일 (수) 오전 3:12, Junio C Hamano <gitster@pobox.com>님이 작성:
Show 15 quoted lines
> > "Wonseok Oh via GitGitGadget" <gitgitgadget@gmail.com> writes: > > > 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.