git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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.
Previous: Wonseok Oh via GitGitGadgetNext: Wonseok Oh
Message 4 of 6 in “fast-import: catch missing data after inline M at EOF”
  1. fast-import: catch missing data after inline M at EOFWonseok Oh via GitGitGadget, Nov 21, 2026
  2. Junio C HamanoNov 21, 2026
  3. fast-import: die on EOF after an inline M commandWonseok Oh via GitGitGadget, Nov 24, 2026
  4. Junio C HamanoNov 24, 2026
  5. Wonseok OhNov 25, 2026
  6. Wonseok OhNov 22, 2026

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.