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

Re: [PATCH] rev-list: ignore replacements in the connectivity check

From
Patrick Steinhardt <ps@pks.im>
Date
Nov 3, 2026, 10:17 UTC
Message-ID
<aum0sTUAqc27DU_W@pks.im>
In-Reply-To
<pull.2279.git.1793634429929.gitgitgadget@gmail.com>

On Mon, Nov 02, 2026 at 03:47:09PM +0000, Kristofer Karlsson via GitGitGadget wrote: [snip]

> The t5413 test that expected the check to accept a commit whose
> original tree is incomplete because a replacement is complete now
> expects a rejection, and the test that disabled replacements
> explicitly to get one is redundant.

This here makes me pause a bit. Do we know whether this specific test was introduced intentionally to make a specific edge case work?

Show 20 quoted lines
> diff --git a/tree-verify.c b/tree-verify.c
> index 25db76d30b..c228235150 100644
> --- a/tree-verify.c
> +++ b/tree-verify.c
> @@ -133,7 +133,6 @@ static int verify_blob(struct repository *repo,
>  	vs->blobs_checked++;
>  	oi.typep = &type;
>  	if (odb_read_object_info_extended(repo->objects, oid, &oi,
> -					  OBJECT_INFO_LOOKUP_REPLACE |
>  					  OBJECT_INFO_SKIP_FETCH_OBJECT)) {
>  		if (vs->exclude_promisor_objects &&
>  		    is_promisor_object(repo, oid))
> @@ -163,7 +162,6 @@ static int read_tree_object(struct object_database *odb,
>  	oi.sizep = sizep;
>  	oi.contentp = bufp;
>  	if (odb_read_object_info_extended(odb, oid, &oi,
> -					  OBJECT_INFO_LOOKUP_REPLACE |
>  					  OBJECT_INFO_SKIP_FETCH_OBJECT))
>  		*bufp = NULL;
>  	if (*bufp && type != OBJ_TREE) {
Nit: this might have warranted a separate commit as it isn't even
related to the connectivity check, is it? Did you also vet all the other
sites that that verify objects?
Patrick
Previous: Kristofer KarlssonNext: Kristofer Karlsson
Message 7 of 8 in “rev-list: ignore replacements in the connectivity check”
  1. rev-list: ignore replacements in the connectivity checkKristofer Karlsson via GitGitGadget, Nov 2, 2026
  2. Junio C HamanoNov 2, 2026
  3. Kristofer KarlssonNov 3, 2026
  4. Patrick SteinhardtNov 3, 2026
  5. Karthik NayakNov 3, 2026
  6. Kristofer KarlssonNov 3, 2026
  7. Patrick SteinhardtNov 3, 2026
  8. Kristofer KarlssonNov 3, 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.