From: Junio C Hamano <gitster@pobox.com>
To: "Wonseok Oh via GitGitGadget" <gitgitgadget@gmail.com>
Cc: git@vger.kernel.org, Wonseok Oh <wonseok_oh@korea.ac.kr>,
Wonseok Oh <marinelay7@gmail.com>
Subject: Re: [PATCH v2] fast-import: die on EOF after an inline M command
Date: Tue, 24 Nov 2026 10:12:27 -0800 [thread overview]
Message-ID: <xmqq33sqt7xw.fsf@gitster.g> (raw)
In-Reply-To: <pull.2323.v2.git.1795497145494.gitgitgadget@gmail.com> (Wonseok Oh via GitGitGadget's message of "Tue, 24 Nov 2026 05:12:25 +0000")
"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.
next prev parent reply other threads:[~2026-11-24 18:12 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-21 7:40 [PATCH] fast-import: catch missing data after inline M at EOF Wonseok Oh via GitGitGadget
2026-11-21 20:03 ` Junio C Hamano
[not found] ` <CAD2pp5sCB8kj6243g63X+Msg=cFR4ODYto5OUA3rYrnioVxShQ@mail.gmail.com>
2026-11-22 4:01 ` Wonseok Oh
2026-11-24 5:12 ` [PATCH v2] fast-import: die on EOF after an inline M command Wonseok Oh via GitGitGadget
2026-11-24 18:12 ` Junio C Hamano [this message]
2026-11-25 1:46 ` Wonseok Oh
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=xmqq33sqt7xw.fsf@gitster.g \
--to=gitster@pobox.com \
--cc=git@vger.kernel.org \
--cc=gitgitgadget@gmail.com \
--cc=marinelay7@gmail.com \
--cc=wonseok_oh@korea.ac.kr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.