From: Patrick Steinhardt Date: Thu, 03 Dec 2026 07:01:21 GMT Subject: Re: [PATCH v2] pack-objects: handle missing objects when excluding promisor objects Message-ID: In-Reply-To: On Thu, Dec 03, 2026 at 07:55:21AM +0100, Patrick Steinhardt wrote: > On Thu, Dec 03, 2026 at 06:34:31AM +0900, Junio C Hamano wrote: > > Patrick Steinhardt writes: > > > > > diff --git a/builtin/pack-objects.c b/builtin/pack-objects.c > > > index ca3a891dfbc..61f2d8a067c 100644 > > > --- a/builtin/pack-objects.c > > > +++ b/builtin/pack-objects.c > > > @@ -5084,8 +5084,10 @@ static int is_not_in_promisor_pack_obj(struct object *obj, void *data UNUSED) > > > .source_infop = &source_info, > > > }; > > > > > > - if (odb_read_object_info_extended(the_repository->objects, &obj->oid, &info, 0)) > > > - BUG("should_include_obj should only be called on existing objects"); > > > + if (odb_read_object_info_extended(the_repository->objects, &obj->oid, &info, > > > + OBJECT_INFO_SKIP_FETCH_OBJECT)) > > > + /* Missing; assume it is a promisor object */ > > > + return 0; > > > > This "Missing - assume it is a promisor object" somehow felt familiar > > in that I recall making a comment on it, and I think it applies equally > > here, but I do not see it in the list archive on this thread. > > > > Screatches head, goes looking ... > > > > Ah, I found it. > > > > https://lore.kernel.org/git/xmqqzeuwwmt1.fsf@gitster.g/ > > > > Are these duplicated efforts by any chance? Can we squash them into a > > single series, taking the best from both? > > > > Thanks. I won't be reading any more until next week (still in > > vacation). > > Interesting, didn't notice that patch series. Alessio, are you okay with > me taking your comment and adding you as a Co-authored-by? Then we can > take this patch here in favor of yours. Wait... those patches are the exact same as the patches I wrote, the tests match 1:1 down to the comments. Look, I don't mind handing over patches to somebody else, I've got enough patches in Git. But essentially stealing them from another contributor without giving attribution or even linking back to the previous approach is certainly not okay. Patrick