Article View: linux.kernel.git
Article #2231[BUG] Lazy fetch in partial clone fails with "not our ref" since 5946a564 (odb/source: make read_object_info() pluggable)
From: "Patrick Ohly"
Date: Tue, 03 Nov 2026 13:24
Date: Tue, 03 Nov 2026 13:24
63 lines
13676 bytes
13676 bytes
Hello, "git merge" in a blobless partial clone fails with "not our ref" while lazily fetching a missing object. This started to occur today in the Kubernetes CI, completely breaking the merging of PRs. We should have been using git 2.54.0, the affected version, for a few days at least without issues, so it can't be ruled out that this is at least partly caused by a change on the GitHub side. We are about to revert to git 2.52.0 to unblock the Kubernetes project. What follows is an agent analysis of the problem. I'm not rewriting it because it seems succinct and useful as-is: What did you do before the bug happened? (Steps to reproduce) git init k && cd k R=https://github.com/kubernetes/kubernetes.git git fetch --filter=blob:none $R 6575724b63e50cd5dd454e774bc293c6de1e4e12 git checkout 6575724b63e50cd5dd454e774bc293c6de1e4e12 git fetch --filter=blob:none $R 787dd27af44c14c22d3bae46bf62b4a0271efc06 git -c user.name=a -c user.email=a@b merge --no-ff 787dd27af44c14c22d3bae46bf62b4a0271efc06 What did you expect to happen? The merge succeeds, with missing blobs fetched lazily from the promisor remote. What happened instead? fatal: remote error: upload-pack: not our ref 27b64cc863187e62d8b47196a78c045412d32ac9 fatal: could not fetch 3c804b88bcf177a1435ba770fa9054c25e1315c3 from promisor remote Bisect result I bisected v2.52.0 (good) to v2.54.0 (bad). The first bad commit is: 5946a564cddc0bf471f27ae4c3fe205441e3ef65 odb/source: make `read_object_info()` function pluggable The parent, 3bc3177ad7 (Β 2.53.0.185.g3bc3177ad7Β ), is good. Versions tested βββββββββββββββββββββββββββββββββββββββββββββββββββββββββ¬βββββββββ β Version β Result β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββΌβββββββββ€ β 2.39.5, 2.43.4, 2.45.2, 2.47.2, 2.49.1, 2.52.0 β OK β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββΌβββββββββ€ β 2.54.0, 2.56.0 β fail β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββΌβββββββββ€ β master (v2.56.0-341-gebdc087dc, built with NO_RUST=1) β fail β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββ΄βββββββββ Notes β’ The remote is github.com over HTTPS. I haven't tried other hosts. β’ I haven't analysed the cause. My guess is that the new Β OBJECT_INFO_SECOND_READΒ and reprepare path changes how the promisor lazy fetch is triggered. The client then requests an object by OID that the server refuses with "not our ref". β’ The failure is deterministic. The first PR head merges fine on 2.52.0 and older. [System Info] git version 2.56.GIT (also 2.54.0 and 2.56.0), Linux x86_64 (Debian stable container) -- Best Regards Patrick Ohly Cloud Software Architect
Technical Details
Message-ID:
<yrjh1p92qc7w.fsf@pohly-mobl1.fritz.box>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!git+bounces-74304-linux-kernel-git=dewy.ruShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!git+bounces-74304-linux-kernel-git=dewy.ru
From: patrick.ohly@intel.com ("Patrick Ohly")
Newsgroups: linux.kernel.git
Subject: [BUG] Lazy fetch in partial clone fails with "not our ref" since
5946a564 (odb/source: make read_object_info() pluggable)
Date: Tue, 03 Nov 2026 14:24:51 +0100
Organization: Usenet Network
Message-ID: <yrjh1p92qc7w.fsf@pohly-mobl1.fritz.box>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: base64
Injection-Info: usenet.network;
logging-data="3176649"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:FQ9ulOHdETqLp1BIrvPY+2uWhlo= sha256:N3jFqotLeTLjVFq6UeN1Tab082z53v0EKP6kIT5CI58=
sha1:xJtPX89rSFc6miISY8zhqhl7AnE= sha256:TlKBMHRYwHyFW08Si6EqNeNyVMgHyLbThEPXUF1hK6Y=
List-ID: <git.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
by mail.dewy.ru (Postfix) with ESMTP id F3A841128B3; Tue, 3 Nov 2026 16:41:49 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -1.952
X-Spam-Status: No, score=-1.952 tagged_above=-9999 required=6.31
tests=[DCC_CHECK=1.1, DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.001,
DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1,
RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001]
autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
header.d=intel.com
X-Received: from mail.dewy.ru ([127.0.0.1])
by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
with ESMTP id 0cuv8ulv8JXT;
Tue, 3 Nov 2026 16:41:45 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=git+bounces-74304-linux-kernel-git=dewy.ru@vger.kernel.org; receiver=<UNKNOWN>
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=intel.com
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
by mail.dewy.ru (Postfix) with ESMTPS id CF4861128A9; Tue, 3 Nov 2026 16:41:36 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
by sea.lore.kernel.org (Postfix) with ESMTP id E3B953E1E9; Tue, 3 Nov 2026 13:24:58 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
t=1793712298;
b=zYmWMtG639I/WRyYCKPjkAtyGeU6W2Ui/UhvqfmWePQZFHFq/eFg08TkjLryollhM284
SJLQOBEk5uFGQAQes6bgM1r9y3YCofZpZADGLYniK76KqdNb+uK7+jp6mD8fTo1TBlbe4
B9iqQLbk/O73IsCjoEuF91C8qv6E9MSQf+041ChByyLC0miT4PNYbCyFwO3i/8eU85Va1
9kfIlAfKxDp/KTBZJFemkjXuywhKDtnr8Sm3qZ5iNAXhQf+v3gY32AiqFIdlkE8UArlXX
BzwxC6r8a2i2GfJrqPOuZYc5VqsW4jcWzAcNNMian+Afo+k2pdM4z4mEmDMLElmdR0w==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1793712298;
h=X-Original-To:Received:DMARC-Filter:DKIM-Signature:
X-CSE-ConnectionGUID:X-CSE-MsgGUID:X-IronPort-AV:X-IronPort-AV:
Received:X-CSE-ConnectionGUID:X-CSE-MsgGUID:X-ExtLoop1:X-IronPort-AV:
Received:From:To:Cc:Subject:Organization:Date:Message-ID:
X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe:
List-Unsubscribe:List-Owner:Precedence:MIME-Version:Content-Type:
Content-Transfer-Encoding;
bh=NmpOcmZ/MFTmXhj4zIUzMfxWaaWW8gjx3NwE1LPz+uc=;
b=unC9u4gnXNUTiY/h54DRbGkwxpigsFlOVqjN46Gv09FJEETNkJsnKU74paku1/Fx0TTv
Oo8rclphrL0KT7Gf6TQ7zk6apyibNC/44iSAQIe/L3DVAjYABPSzcpDCyPEzAfSNGd4s9
aLQd/J0biBki6eFYaF+dLR/QmM9sJDg04WMfUeG260vn+32IDNYaRhu40wzuBGSRgIVbz
AJ6YH09CSAYe+/+ZRde70I/L0UumkJaYyPz3vZ/DaIINzXQGHJHg/MZlIQIwZbPJ1LKoh
X9zq7fRe5TdowCGwyZcyxRgHFj2zxpCcBkQw2WR5VCi+kytv0eYgEOkoW1tSK1YOYPQ==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org;
dkim=pass header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=aWxWhM1T;
dmarc=pass header.from=intel.com;
spf=pass smtp.mailfrom=intel.com;
arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
by smtp.subspace.kernel.org (Postfix) with ESMTP id 12274606A330;
Tue, 3 Nov 2026 13:24:58 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
dkim=pass (2048-bit key, unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=aWxWhM1T
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=192.198.163.17
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
t=1793712297;
b=BI6BB+WmQ0GS1qypTWbjPitBjrVKE9JchwmVXWBVqSB/aHwlW1IIDbZ+s3Mb0uFMmhQw
O59mrvRN/0/dgG9M4VXrz9N5T1fpW7HLhatUfJxHGY+rBxS5b36t8R5Rkh713M/J8O045
rzEEYFgR1F1hdxfKd0hLn3AHtSgl9ME0S+FwMIiDgyFrIKmt748005bMkCqMJ1Prw7ZsD
L4/GynplZdtMxwr/iHl7QCpmuckN8OC07bFRAGODtF3hhXcCJ/6RJwfBYQVdbvwgiychL
W84lp4r/Xc+r+71Gl5Kj3nnB4pVqurOL34jirvZLJGcmeZ/TMtCzfHbTLdICkeYfWxQ==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1793712297;
h=DMARC-Filter:DKIM-Signature:X-CSE-ConnectionGUID:X-CSE-MsgGUID:
X-IronPort-AV:X-IronPort-AV:Received:X-CSE-ConnectionGUID:
X-CSE-MsgGUID:X-ExtLoop1:X-IronPort-AV:Received:From:To:Cc:Subject:
Organization:Date:Message-ID:MIME-Version:Content-Type:
Content-Transfer-Encoding;
bh=NmpOcmZ/MFTmXhj4zIUzMfxWaaWW8gjx3NwE1LPz+uc=;
b=t3j9os78Oy6JWcg9D/E4ZOO9vw3zq+BJ3jQJCE9AlF7e3bZwika4AomngAWuP1giit1m
tEOesddq15JTqWBK+3rxghJLNT174tO6Iu1SVzmEHoa5EARL9z/lrPYs6GCk+/5mdgkvD
ezY8UYF3UkEA6zZAa1Iwk50bzGTo/rxeXw8jQvmIL/uqG9fQuhwFncTuaDdGJgm/lw0mn
PrPHt0lUOiOCwqYASvnpVq9JbC1kxnsc3fO61YmvHQ6FGLyI31uypUJwKQ51T65rMJBMl
dKelfJxZhEL+xq3Zb16IFo7pAPeQ/cDXoRPlLAo8SP7TPVWIwm5ddqRzD/xtOA/Ls4Q==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org;
dmarc=pass header.from=intel.com;
spf=pass smtp.mailfrom=intel.com;
dkim=pass header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=aWxWhM1T;
arc=none smtp.remote-ip=192.198.163.17
X-Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.17])
(using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits))
(No client certificate requested)
by smtp.subspace.kernel.org (Postfix) with ESMTPS id 02614606A327
for <git@vger.kernel.org>; Tue, 3 Nov 2026 13:24:55 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 02614606A327
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple;
d=intel.com; i=@intel.com; q=dns/txt; s=Intel;
t=1793712296; x=1825248296;
h=from:to:cc:subject:date:message-id:mime-version:
content-transfer-encoding;
bh=NmpOcmZ/MFTmXhj4zIUzMfxWaaWW8gjx3NwE1LPz+uc=;
b=aWxWhM1TgGEFvMz9U8WH+yLKABzpkQrdVe9IhIN5b2BH3MgPWBVLHhAt
9OFspEZ49emqYH7R2pvmJcIQFpvehMKD0d2gkQOMn48qUWBNFrzCu10az
+DYC/+Hj4DpKPEFYMossYGgM8J9xJ5Pf9gBAsATo1DUI7CnOdorBBhteL
15lArbFs9lktzddeOnMjQVguyxXpTWpVW6FPYhm5YI+vupOW9ZWwK+Cnr
kORr+dihIjCM/I/qKvJiKWbfGJmOGB/AcL61FR/jSl2uGrHzigZswnLG3
dSOfNHtxig2mz5AqLXPAQsVjnxfV7vTpeSz33pbXv6nxmvdOkcRmo1maI
w==;
X-CSE-ConnectionGUID: evYr5be8QdCxEcsQGlhbzQ==
X-CSE-MsgGUID: NrxWlYvJRhm/FYYtD5bctg==
X-IronPort-AV: E=McAfee;i="6800,10657,11954"; a="2444911"
X-IronPort-AV: E=Sophos;i="6.27,193,1787036400";
d="scan'208";a="2444911"
X-Received: from fmviesa013.fm.intel.com ([10.60.135.153])
by fmvoesa111.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Nov 2026 05:24:55 -0800
X-CSE-ConnectionGUID: PAfreyRAS/i7bDcpfGJrWg==
X-CSE-MsgGUID: Dg0cnVVPRMWBtT1IcwVXUw==
X-ExtLoop1: 1
X-IronPort-AV: E=Sophos;i="6.27,193,1787036400";
d="scan'208";a="8273629"
X-Received: from klitkey1-mobl1.ger.corp.intel.com (HELO localhost) ([10.245.245.102])
by smtpauth.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Nov 2026 05:24:54 -0800
X-Cc: "Patrick Steinhardt" <ps@pks.im>, "Junio C Hamano" <gitster@pobox.com>
X-Organization: Intel Deutschland GmbH, Dornacher Strasse 1, D-85622
Feldkirchen/Munich
X-Mailing-List: git@vger.kernel.org
X-List-Post: <mailto:git@vger.kernel.org>
X-List-Help: <mailto:git+help@vger.kernel.org>
X-List-Subscribe: <mailto:git+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:git+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:git+owner@vger.kernel.org>
X-Precedence: list