🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.git
Article #2467

Re: [PATCH v2] odb: do not list our own refs as alternate refs in the quarantine

#2467
From: Junio C Hamano
Date: Thu, 05 Nov 2026 19:56
30 lines
14208 bytes
Jeff King <peff@peff.net> writes:

> On Wed, Nov 04, 2026 at 11:25:38AM +0100, Kristofer Karlsson wrote:
>
>> No, I think you are right.  The quarantine parent only matters when
>> the object directory is not under the commondir, which is rare.  Your
>> version is essentially my v1 without the "this is a hack" framing
>> (and also cleaner).
>
> What we really want is "where are we reading our local refs from" (to
> avoid reading them again). So even if you have an object directory not
> under the commondir, we would not find our repo again by looking at the
> parent of that directory.
>
> But I also won't be surprised if there is some arcane working tree setup
> that I'm missing.

With those historic environment variables like GIT_DIR and
GIT_WORK_TREE, and GIT_OBJECT_DIRECTORY, any random arrangement is
possible, I am afraid.  I do not know if it is worth worrying about,
though.  We've seen people use out-of-tree GIT_DIR by using the
former two environment variables, and I can see why people find it
attractive, but I do not recall people using creative uses of
GIT_OBJECT_DIRECTORY to tear /objects directory out of GIT_DIR, and
what the perceived advantage of doing so are..

> Anyway, what's in your v3 looks good to me. Thanks for fixing this!

Thanks, both.  Let me mark the topic as ready for 'next'.
Technical Details
Message-ID: <xmqqwlqrrr0e.fsf@gitster.g>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!git+bounces-74600-linux-kernel-git=dewy.ru
References: <pull.2285.git.1793200705017.gitgitgadget@gmail.com> <pull.2285.v2.git.1793619933300.gitgitgadget@gmail.com> <20261104024806.GA1492379@coredump.intra.peff.net> <CAL71e4OreARF+dbCU3S8-_umrFEptPLPUiPDH3SYBx6OYjVpfg@mail.gmail.com> <20261105185632.GA2898829@coredump.intra.peff.net>

Show 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-74600-linux-kernel-git=dewy.ru
From: gitster@pobox.com (Junio C Hamano)
Newsgroups: linux.kernel.git
Subject: Re: [PATCH v2] odb: do not list our own refs as alternate refs in
 the quarantine
Date: Thu, 05 Nov 2026 11:56:49 -0800
Organization: Usenet Network
Message-ID: <xmqqwlqrrr0e.fsf@gitster.g>
References: <pull.2285.git.1793200705017.gitgitgadget@gmail.com>
	<pull.2285.v2.git.1793619933300.gitgitgadget@gmail.com>
	<20261104024806.GA1492379@coredump.intra.peff.net>
	<CAL71e4OreARF+dbCU3S8-_umrFEptPLPUiPDH3SYBx6OYjVpfg@mail.gmail.com>
	<20261105185632.GA2898829@coredump.intra.peff.net>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: usenet.network;
	logging-data="3728746"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:far0/8oW+ySXnVYbyPFZYzGyT/o= sha256:i7SY9Twp7qi2q0G7VawB/RBPXtc+tK/Mq+jQ+tgi1kU=
	sha1:D9oMRhk8FzCxhVcj0wZI+nkdhsU= sha256:S2klj/8MaphVIuGqUGrYJdQJA8k2RVLh9nPUJXq+x/M=
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 9A2AC1130A1; Fri,  6 Nov 2026 00:02:38 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -1.95
X-Spam-Status: No, score=-1.95 tagged_above=-9999 required=6.31
	tests=[DCC_CHECK=1.1, DCC_REPUT_70_89=0.1, 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,
	URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=pobox.com header.b=P7jwQWyy; dkim=pass (2048-bit key)
	header.d=messagingengine.com header.b=P/POGDs8
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 Vz9ncZTI-5XA;
	Fri,  6 Nov 2026 00:02:34 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=104.64.211.4; helo=sin.lore.kernel.org; envelope-from=git+bounces-74600-linux-kernel-git=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=pobox.com
X-Received: from sin.lore.kernel.org (sin.lore.kernel.org [104.64.211.4])
	by mail.dewy.ru (Postfix) with ESMTPS id 14C06112D9C; Fri,  6 Nov 2026 00:02:19 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sin.lore.kernel.org (Postfix) with ESMTP id 655142FF18; Thu,  5 Nov 2026 19:57:34 +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=1793908613;
	b=jQq9Nn1iJza7j7vGcpb9pASjpanxhLDr0sGR7a80ZDxXCUZmvsnMnMbmGhcY9hCK3f/6
	 NajePniOofZfkbyLE9cRIfEFvN3irhPMV87/VxCEwiR14oofuwMTQphAmDVvltq1Qz+dw
	 ERlcjxiAFZHIhESsppcHNiSmjzI7UmxH93CqrSm5QPAuEySV0DpsoWv97sS6kx2UpmDqc
	 rly8VgUhyf9q7xzh2KhEcAvYiybZZGSsugUVpH1wG7vwjklcC27PA+RvEd5WT5Ja7MaGJ
	 x5J8MtqAaJG8aExK4UptBh9MfuKK75e6lZjtPhMaH2J54C5QEtdgxXdUSVisEooyDgg==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793908613;
	h=X-Original-To:Received:DMARC-Filter:Received:Received:DKIM-Signature:
	 DKIM-Signature:X-DKIM2-Info:DKIM2-Signature:X-DKIM2-Info:
	 Message-Instance:X-ME-Sender:X-ME-Received:X-ME-Proxy-Cause:
	 X-ME-Proxy:Feedback-ID:Received:From:To:Cc:Subject:In-Reply-To:
	 References:Date:Message-ID:User-Agent:X-Mailing-List:List-Id:
	 List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner:
	 Precedence:MIME-Version:Content-Type;
	bh=Nf77Ek31ZCuDJieCB35kqwq1lmanCRO6q5HEfU+AfWM=;
	b=HW/Dny9uHWHRIp8QKf47DdYrbm1H8T0HioZB5YWgtx0FiuDgGRvjgh1U7cbY90iuX5hD
	 +zah1+P6B0CvnpVv6uUQgdS/9g9LUaZKA4Cr7JjjyPhzk3kDvHIPrxzszYdUS/lTAEnNK
	 fJpvCwm+Pk91rhJ9Ug61YC0pQK3RBMshooOMHIGgbC7q5J2P+Q3gtP0oeF462N+anZkJV
	 JLYowqsuJSiaTh0l/hNCBuWUseXY6gQkl0T+CKm7RqN1qGSRNgyRz2m2Nj0NCJys+xdmY
	 7mQu9nDcBicc9rETO43efRx8vbiMijLT0IsYVXVlvBY+4m5LYCkNJWUVRP7G3seSg3A==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=pobox.com header.i=@pobox.com header.a=rsa-sha256 header.s=fm2 header.b=P7jwQWyy;
	dkim=pass header.d=messagingengine.com header.i=@messagingengine.com header.a=rsa-sha256 header.s=fm3 header.b="P/POGDs8";
	dmarc=pass header.from=pobox.com;
	spf=pass smtp.mailfrom=pobox.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 34B64606A32F;
	Thu,  5 Nov 2026 19:56:53 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key, unprotected) header.d=pobox.com header.i=@pobox.com header.a=rsa-sha256 header.s=fm2 header.b=P7jwQWyy;
	dkim=pass (2048-bit key, unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.a=rsa-sha256 header.s=fm3 header.b=P/POGDs8
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=103.168.172.159
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1793908612;
	b=zXmCqzXW7Yv4fW6+fyNdORBIwcDbFtWuRvx7xq94+hJp6RX/eWqr2OHon2Xmv+tzfeJF
	 mOhn9X4oWwqOao7Ae+cOglS46SiEBBH3Vwb3XCwnW2T3k+hwkgtqhNgS0mUQecgZq47fp
	 MYt8o53eB9mYvt7oF1U3LDGQ70XLokIKAisVoop2KmqTPqH4MfyoIeglkEJEkaJsGkjZv
	 w74tzVICApuGGF43UEcxBss8TzfIz+O+SFGU025cWM8uxFfs35tlXu+SNcYgSiomL8vF2
	 H6fCIigP030w2Gw5ccYjGCuOgZaFqnqfW8fW95MQziLs0zvjPm1nozLs936sI8h5M8A==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793908612;
	h=DMARC-Filter:Received:Received:DKIM-Signature:DKIM-Signature:
	 X-DKIM2-Info:DKIM2-Signature:X-DKIM2-Info:Message-Instance:
	 X-ME-Sender:X-ME-Received:X-ME-Proxy-Cause:X-ME-Proxy:Feedback-ID:
	 Received:From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID:
	 User-Agent:MIME-Version:Content-Type;
	bh=Nf77Ek31ZCuDJieCB35kqwq1lmanCRO6q5HEfU+AfWM=;
	b=A8f+eQta16IeOE8/DuyG67qoyVx0URf558+Asga1xTlTEksnxAXYedBfN8D8aFRgVxHM
	 WuRnlps4CyeMfTeGhQfypdC8f83vt9rHGkgMKlzfHX14OyUCQriccUrWfk6cI75YhgGpL
	 r0sEfl3xdjUTztHEL4f0qSs4XvbdMyyBuqEwO22+ZjTjvolaxdYcvUMd129rYYurRnpGU
	 1N6Yun74BFcYNYkxB0cY1+1UU8CsHNk5tw2AGVE4EsGSUKnjX29LwjirC4an1yEuUH65H
	 iFv5aHkwXGhLoxYdzq0DAkIcRV7jtlABMyf95w2BB1SmASpJbB0WPJh7vjEW0JWYRLA==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=pass header.from=pobox.com;
	spf=pass smtp.mailfrom=pobox.com;
	dkim=pass header.d=pobox.com header.i=@pobox.com header.a=rsa-sha256 header.s=fm2 header.b=P7jwQWyy;
	dkim=pass header.d=messagingengine.com header.i=@messagingengine.com header.a=rsa-sha256 header.s=fm3 header.b="P/POGDs8";
	arc=none smtp.remote-ip=103.168.172.159
X-Received: from fhigh-a8-smtp.messagingengine.com (fhigh-a8-smtp.messagingengine.com [103.168.172.159])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1))
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id EA67C606A32E
	for <git@vger.kernel.org>; Thu,  5 Nov 2026 19:56:51 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org EA67C606A32E
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=pobox.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pobox.com
X-Received: from phl-compute-03.internal (phl-compute-03.internal [10.202.2.43])
	by mailfhigh.phl.internal (Postfix) with ESMTP id 1C252140011F
	for <git@vger.kernel.org>; Thu,  5 Nov 2026 14:56:51 -0500 (EST)
X-Received: from phl-frontend-02 ([10.202.2.161])
  by phl-compute-03.internal (MEProxy); Thu, 05 Nov 2026 14:56:51 -0500
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pobox.com; h=cc
	:cc:content-type:content-type:date:date:from:from:in-reply-to
	:in-reply-to:message-id:mime-version:references:reply-to:subject
	:subject:to:to; s=fm2; t=1793908611; x=1793995011; bh=Nf77Ek31ZC
	uDJieCB35kqwq1lmanCRO6q5HEfU+AfWM=; b=P7jwQWyyAiZEAHqzRezaAnlLcP
	xbJAO7HdxCBzUnH+zwpMqi2cI8JW+jKv57ZATdgSigp8odpmIQFBXa/AeglWPFBo
	7466jevWOeQkzgTYGmB/ZtUgD/ypi2+IMVVzMHgmn7WKyPYLquB7HUJcpYxywwep
	U10kI80u3Kf0f9EhnxJgTz+pFMWEJPZW9TfpqQBmwmPVcxdmdMAUDqz/eZkQfw6V
	vAKfDs0eMy/VLODw+ZEwOQ132ZHo9HWnXw9jpAPkrdOyv4eziEA+jrxNOssU2ixU
	chfgLGIG+KUrEPrBPFAI7zkAn0YcnYyIbvbHnsxz1d3chLre/+cxCcqtuQdQ==
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
	messagingengine.com; h=cc:cc:content-type:content-type:date:date
	:feedback-id:feedback-id:from:from:in-reply-to:in-reply-to
	:message-id:mime-version:references:reply-to:subject:subject:to
	:to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=
	1793908611; x=1793995011; bh=Nf77Ek31ZCuDJieCB35kqwq1lmanCRO6q5H
	EfU+AfWM=; b=P/POGDs8Ywy1NA6vJoVBOs1WhfIACtXMjQxwAUA/hU8t5W116tS
	FfEgJ7NvTgdf8B7n/RTjI5qNpAR+bagp/oAdnafDtcv5SqQSnl5lPyrlgn4EyRRo
	Z8XsPpWLC7W9cLgeUimiuZR38H5yQ/uXSieQu5o57NYA3J9n7bex6+25Fw7y0MOa
	1ZHOB/zg2fA4JPYkT/Z70VdacO6WdM6IHlkeu0YFFn9WbvmSEUDtH2aOTrXagW05
	vFAwOF6k/qJTzeVPZj7tXwep2aAyumWRc8b2dUJGeXfVZSMsICnILd6MXeMknNq0
	V3H40NvJi0spPg08hHyTVJyU36IbGXM+Upg==
X-DKIM2-Info: draft=ietf-dkim-dkim2-spec-09;
	repo=github.com/dkim2wg/interop; date=2026-11-03; sw=lmtpprox;
	action=sign d=pobox.com a=rsa-sha256;
X-DKIM2-Signature: i=1; m=1; t=1793908611; d=pobox.com;
	mf=PGdpdHN0ZXJAcG9ib3guY29tPg==;
	rt=PGdpdEB2Z2VyLmtlcm5lbC5vcmc+;
	s=fm2:rsa-sha256:jPWfbs1wiXV8SxVrH7vO7hqq+w/kbAD1ID/epIQqn0eC00o
	kbO82PyDMSXn3bCcehB7x/prTdtGkW44TXvqaZtu1HxR3NPqBVR99t05LrLiRfmp
	CUjggXHSwayuEnssNkxLMvsK0xqngKgI8zzNAem4PJ4UaDKZXlCk6/iZL/x/c/+O
	WVcxA3kIiAae6YYxl4D3c+WI1YVPhg0GLHqnjTrXu9h1pMBMkgEoSe6UT8GgqlGT
	OH5zwj7orDsSTczxuXhLNsyX1SegmBFAEamb3kePSdeUPebNpPCdNG74qKLP9XgM
	QqKQOd1FmDiX9PGTrVrLh1zt6bhO+6k8Ezo+7Xw==;
X-DKIM2-Info: draft=ietf-dkim-dkim2-spec-09;
	repo=github.com/dkim2wg/interop; date=2026-11-03; sw=lmtpprox;
	action=mi-m=1; hc=12;
	hn=cc,content-type,date,feedback-id,from,in-reply-to,message-id,
	mime-version,references,subject,to,user-agent;
X-Message-Instance: m=1; h=sha256:QvryfQadgLwIZC/o3FPo9gMNw6tn/sjkInDIjYhTwz0=:9kK0ZHJxNlRHFNHr/Xs9M7q+Y6CCRJb4aKCusro9MjQ=;
X-ME-Sender: <xms:gt_sai8OdPLeTeGqVyzkQcK1CS8hh3KpQv1MK04F2MOOSZOnHu0bJQ>
    <xme:gt_sak9ISlRlt5nucle-3MBIzqmxlbyVF4oS7gGY6eatdeVppSbCJG7V5QsPlweee
    Ouz7Rm2gxekkPCsqtfW5naej60sGbFYBxun9Q32QOBpFcX4dAR-HKI>
X-ME-Received: <xmr:gt_saqSfr7Yg9_LDqcbs3R4FaXhWymSXD447ltf4xsV5vZGo1dj-pmtC6LXteIBScE0xxVTpL0-eJA8FCjPBqvriqB74HrUunkJX>
X-ME-Proxy-Cause: dmFkZTECNs6QafmKEyK/XBSN3/3HyJ7P8IYG+xyrs+QT0KuZSsNIBp6CiAfkK3KUEKEs7o
    kgveHOwwEuibZ4mJ+P1LxoX2NdMvSuzddMj2QAaIIhl23Jg/XShRuQFt7R8wMERmn3AuAb
    Bq3gVANbTwIyyJOvVu/ivxYEj+wQiuzk5okfUhn6I2GIwkh/T7KX0UWfjIDy1lke0aZfib
    pG0gExN5Zuo5gMgiDotkCWFDKvVBD93/fkGTGxByqQcKQcKNTuArSv7rOHu3zk/b+OxCIC
    XcvdIwl/shf97pSou3x9YKCToQPjwmI4zSRHDBborOg06vYV/r+5HjhRoumKy+UAxKxhOd
    zLmv98XS/HaCUoEpTkxvhdRyP8viXPErcMTMx/LQJtuihevYyFH9EhEG1KJGmdLzfPni1H
    eo+zw9MMeyArD0k+Gux7xQz85fWCpzODD1O/PVSBmmeGR7iC4RwSl6oJC1SQ4kFm2KfCiy
    I/kFmJg8YVk+EPC57scgv/oy4dvyLQjdYKI0sbpa5MHq8Q6UWb5TobXaIIiw30g1KRL1Od
    gaStFHhkoRVpn0BaFHBgSqlYa46UiFXYSaC1ZVx3j6QazpCac1teVMnv1ADnUF7zRk/qiu
    yumA4l77kLMILgJylAENh+c6coyD3LoYGwcmt27bEx+skkIOgg/InAB1KQ6g
X-ME-Proxy: <xmx:gt_sage_E4TFNDPL1t1tWWoJ5b4OHgfdm3zjLjETPLzpuZ3jIy7mlA>
    <xmx:gt_samB0MW4nLmnz5FMOdgTiUTY8B_N3tlrni2ndLfmndVg1CXL2vQ>
    <xmx:gt_saqksajTURoL6-n8yh8ujwjmaJnEXubILu2Jfmt3BZZxr__2H5Q>
    <xmx:gt_sapc1--JxVLGerCbF0X2y6hPJMkdQGQWJ_V-xWd7BFMgRgFRqNg>
    <xmx:g9_sav-wNHeKgXMZ1wDm_aMi2_GYmOihbjSEniekfG_oyl6SP5w9ULfw>
X-Feedback-ID: if26b431b:Fastmail
X-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu,
 5 Nov 2026 14:56:50 -0500 (EST)
X-Cc: Kristofer Karlsson <krka@spotify.com>,  Kristofer Karlsson via
 GitGitGadget <gitgitgadget@gmail.com>,  git@vger.kernel.org,  Patrick
 Steinhardt <ps@pks.im>,  Justin Tobler <jltobler@gmail.com>
X-In-Reply-To: <20261105185632.GA2898829@coredump.intra.peff.net> (Jeff King's
	message of "Thu, 5 Nov 2026 13:56:32 -0500")
X-User-Agent: Gnus/5.13 (Gnus v5.13)
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