Article View: linux.kernel.git
Article #1462Re: [Discussion] t1006: testing %(rest) with object names containing whitespace
From: jyotish kumar
Date: Mon, 26 Oct 2026 04:56
Date: Mon, 26 Oct 2026 04:56
36 lines
13224 bytes
13224 bytes
Hi Jeff and Junio, Thanks for the clarification. I understand that the limitation is intentional and that using the resolved object ID would not test how %(rest) behaves with the original object name. I'd be happy to volunteer to clean up the test in t/t1006-cat-file.sh, so that it handles this known limitation appropriately and removes the obsolete FIXME. I'll work on the test change and send a patch for review. Thanks, Jyotish On Mon, Oct 26, 2026 at 9:11 AM Junio C Hamano <gitster@pobox.com> wrote: > > Jeff King <peff@peff.net> writes: > > > So IMHO everything is working as designed, and there is nothing to fix > > in the code. But using test_expect_failure seems weird to me. It avoids > > the test suite announcing a failure, but it is not really a breakage to > > be fixed. A test with %(rest) and an object name with space should > > probably just be skipped. We _could_ run just those cases with the > > resolved id, but the point of that test is checking how %(rest) works > > with the name, so I don't know that it would be testing anything useful. > > Yup, thanks for finding old (but not so old) discussion. We really > should have fixed the test including the fixme comment as we knew > already back then that there was nothing to fix. > > Perhaps somebody involved in this discussion thread can volunteer to > do so this time?
Technical Details
Message-ID:
<CAGjZMyRF-hV8PMK2VBJT-9kzvgtQYP2EfYSMPjxSKmc2ZgscDw@mail.gmail.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!git+bounces-73235-linux-kernel-git=dewy.ruReferences:
<CAGjZMyRqv5RsLF4Vo439zy4urfr+R=CTwuDzmYjiemauuZan0Q@mail.gmail.com> <20261026013254.GB3575069@coredump.intra.peff.net> <xmqqjyn5w2l2.fsf@gitster.g>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-73235-linux-kernel-git=dewy.ru
From: jyotishkumar725015@gmail.com (jyotish kumar)
Newsgroups: linux.kernel.git
Subject: Re: [Discussion] t1006: testing %(rest) with object names containing whitespace
Date: Mon, 26 Oct 2026 10:26:56 +0530
Organization: Usenet Network
Message-ID: <CAGjZMyRF-hV8PMK2VBJT-9kzvgtQYP2EfYSMPjxSKmc2ZgscDw@mail.gmail.com>
References: <CAGjZMyRqv5RsLF4Vo439zy4urfr+R=CTwuDzmYjiemauuZan0Q@mail.gmail.com>
<20261026013254.GB3575069@coredump.intra.peff.net> <xmqqjyn5w2l2.fsf@gitster.g>
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Injection-Info: usenet.network;
logging-data="1224939"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:FBgNCO/3ZhLJPfJnoueYQyA9o7g= sha256:Kni69NQSf6/gUswDSU9RaqYAkWqKD6uewquoC4fu8X4=
sha1:ekyoixxYjwXNHsGFJ1354ZRmjqI= sha256:nywmb2e/0AAHf28DkyZTNvXLUN41Y0kUl6Va9l9B8pw=
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 1D863125B88; Mon, 26 Oct 2026 07:57:38 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.048
X-Spam-Status: No, score=-3.048 tagged_above=-9999 required=6.31
tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
DKIM_VALID_AU=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.001,
FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25,
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=gmail.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 LRr5TNIXtkXL;
Mon, 26 Oct 2026 07:57:35 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=git+bounces-73235-linux-kernel-git=dewy.ru@vger.kernel.org; receiver=<UNKNOWN>
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=gmail.com
X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
by mail.dewy.ru (Postfix) with ESMTPS id 03BDD125B7B; Mon, 26 Oct 2026 07:57:26 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
by tor.lore.kernel.org (Postfix) with ESMTP id 842D2274D4; Mon, 26 Oct 2026 04:57:12 +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=3; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
t=1792990630;
b=D6j+l9AuwC1npQkWF+rfzOGu4kU9V3KjIsikQEnYhNGIvg75L/Ot5dw7/W2om9hnjZK+
chM86ekQ1g6v6Q7ubElFUxI8g1a2HliVvyIloTxWJf4vN42CWok43iS4GH/tQgA4VA+u2
d4fjAVNvtZ1aqdVulkV4gDjeum9p80x2kjDjZwaIOJFfbdib4HkzJm9CP1dGwY34ovqml
Rei5iCto/caba0FS1Wx2q42wrUEHkXsdmJhq1HF0fItPAaL13l5BuRZ9PZ+7Ju8mDO3lN
xJEM6DVyQLOxyh0zzw6O3cE/GC7ywnUE6GLCbKwqzZJ+/boVCzQrIFiNHzyTac47WZQ==
X-ARC-Message-Signature: i=3; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1792990630;
h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:
X-Google-DKIM-Signature:X-Forwarded-Encrypted:X-Gm-Message-State:
X-Gm-Gg:X-Received:X-Mailing-List:List-Id:List-Post:List-Help:
List-Subscribe:List-Unsubscribe:List-Owner:Precedence:MIME-Version:
References:In-Reply-To:From:Date:X-Gm-Features:Message-ID:Subject:To:
Cc:Content-Type:Content-Transfer-Encoding;
bh=NmE0VQ+wznagLm9e5H9L0D7qy28CLOCQdbzYNhXER30=;
b=WZyhJaEFwrFZUgr7yF+Kk0hgW49kbSGt/N3fonwLo2P/Q3E8wGLk2rJ0D0bOmOHfJFHN
GAgWgr4ZVI+6QAyU2JgweEOEerUCLZ+ZYn+W04NkMeExgHENl+k7HsdppbtROSPci+OsB
Jf9zgnFEe9tv/pVuaVMmnB1qlVYk87GeqqJA2MGqKR2/wihkple4zW3uzOO+yI+hEzcOm
V5Nb0ziYPwe40qGp2CC/O/Il4bx3pA4eXNvIQ1Z6eemYgZM29n/tr5SYxgT71RSUYGZWr
MqxN5i6zYThtXLkgz8CD89aXCXW+m4PInbePALAmKHfDhFMOT7JicfTiNlw4sbTOM+A==
X-ARC-Authentication-Results: i=3; smtp.subspace.kernel.org;
dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20251104 header.b="F5Cg/GDZ";
dmarc=pass header.from=gmail.com;
spf=pass smtp.mailfrom=gmail.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 417E5606A321;
Mon, 26 Oct 2026 04:57:10 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
dkim=pass (2048-bit key, unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20251104 header.b=F5Cg/GDZ
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=209.85.210.52
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
t=1792990629;
b=JfPYtYCe4tCGZMRQ3Hycz/6n9Lf87/nLgvKp/fTBSAphjAqCfQHKJtWq/eCJS/QsgTUy
8mBRd8GbPoS0+yAAxx1hmtbmw+o+4090t6N/Xn9U6WD/42ijBTWuvJ1eG1J8HEuHvm22t
TRydvA9M3n+XuLdaiSW1hr+5e07OGrtENh/qwLsgSg2kC9CaF2YkSEenbdwttagSoL90Z
FzQHnjBAb5I1XpIUDnTnBoEQUHJB7j9TaFKEoYXfIzozikPN6XhPJ1f1SmGqaY6u7tFl0
gA8YQTt6SBbJPjQUl9h5Id3/MGsUrwK20GMbtOhj0RQB93Hffa/mQF2Hm8CnLaP3mtQ==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1792990629;
h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature:
X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:
MIME-Version:References:In-Reply-To:From:Date:X-Gm-Features:
Message-ID:Subject:To:Cc:Content-Type:Content-Transfer-Encoding;
bh=NmE0VQ+wznagLm9e5H9L0D7qy28CLOCQdbzYNhXER30=;
b=36IDCqXg9R97ah9KvOs+CYJmLVOnO32BNnbRmE/m2rIeP7y0LtTSlKGBmpcAPZNRtirR
cW3++HF0m7sdsdUWya4g+qQLgIIj6d+Pg4Okp56aVoPwKB/vIR+kvU1knL9hCAM4SYSYA
BYEpLP9lMbY1X3ArCOPprTazwtXNOyJ6Thrb2XBp9Jdx5dTks79I9mcC0sNSmBUIVlPQa
mWqqLoS7efoafEkWry72hX65SlBL7vly+H0t6lAoNkeWvzmy2Cr9TI3S8d961Tr6lcbju
J1iq9kQDXvIEiNV9iLkjt3BjMEfUHKjeUYblYTkOCZWB/ot5tFzuBns5G6Qb6m10/mw==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org;
dmarc=pass header.from=gmail.com;
spf=pass smtp.mailfrom=gmail.com;
dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20251104 header.b="F5Cg/GDZ";
arc=pass header.oldest-pass=0 smtp.remote-ip=209.85.210.52
X-Received: from mail-ot1-f52.google.com (mail-ot1-f52.google.com [209.85.210.52])
(using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)
key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
(No client certificate requested)
by smtp.subspace.kernel.org (Postfix) with ESMTPS id 03663606A31A
for <git@vger.kernel.org>; Mon, 26 Oct 2026 04:57:08 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 03663606A31A
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com
X-Received: by mail-ot1-f52.google.com with SMTP id 46e09a7af769-7f48c750afcso1587986a34.0
for <git@vger.kernel.org>; Sun, 25 Oct 2026 21:57:08 -0700 (PDT)
X-ARC-Seal: i=1; a=rsa-sha256; t=1792990628; cv=none;
d=google.com; s=arc-20260327;
b=crE74Sxr418cl1bQDJFPPEp4FlxTGWrhZ1x3zNbuH4wLeyuXqC24xfOAnxpyBztIJL
0FZPVAAoZKTax7d91lkZNGuZ18krQZsNkO+hk9Ogq4dIczS62geB4uaB1+Kitp+tF+pd
KczT6m0xpI5PeJW7ERNTy6wepS0N3lUHrHRV4c6Ec4Wkfs4KJrUgG55qVituF6BDYdFZ
rawovlQb+Rugc2HxKqs6xC6OEjIkqOJ9CBsGrtaLFaAYLH0Z//zJRvG+2BrSv8DXedgY
cEsT6upaxL9Q/XB0XVH5GErUhguYvaAkF014Kls/30pKd3J/69cxWsshy3cejuVyf3FB
43Bg==
X-ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327;
h=content-transfer-encoding:cc:to:subject:message-id:date:from
:in-reply-to:references:mime-version:dkim-signature;
bh=NmE0VQ+wznagLm9e5H9L0D7qy28CLOCQdbzYNhXER30=;
fh=Npjlb0gTp0KEiOlZaLATLTAYXAiHc6nMBHcw1scvIto=;
b=MU4UsZijAK3ENSIsXDNl3SJt4G/M/MvMp2c2y138PCCfRuvQUeuAeQvSz/hNlobOg1
6pfyvh/oKDJzaDpUmLHnsjD89HDJxKB4qbY/NxTDXGuc5Gg3duk7wM6Y/9t+JG09/wxL
NS2DXt9osXxN57XvBxTj7gcCd3ErTIms7UP+SE7vc2CL9YrihW2uANtq/b3eXlTCI1/G
6vu9XPaRTSh8nNOX+L3cQgovmKUyF1AhsLb2tgxDFBMmBf2ed1FInxCP2TW0RaftflOa
D5Tt32s9/HEg2olEccVdcs5kp07FJaLwfy0vAY53O0Y0qlEw9vY+/QXbptCZy1tojYRa
5zWg==;
darn=vger.kernel.org
X-ARC-Authentication-Results: i=1; mx.google.com; arc=none
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20251104; t=1792990628; x=1793595428; darn=vger.kernel.org;
h=content-transfer-encoding:content-type:cc:to:subject:message-id
:date:from:in-reply-to:references:mime-version:from:to:cc:subject
:date:message-id:reply-to:content-type;
bh=NmE0VQ+wznagLm9e5H9L0D7qy28CLOCQdbzYNhXER30=;
b=F5Cg/GDZresv2g8u1bqIc9hVuDFvYpHI5fTWaa84fVyc95bJY/52f9vbPQd2iOSpOG
aQ2dyfbN0BbgQeQXPQQh23eBl4vcwkNsXLJkYq95CvwCmdIaM0PpHbmYq0zEaSSAK16W
rKMhXTHbdoNbF4ABkYa8KH1zCqj1ZWybfsXkl7vZS9Y45w34rir0gHvGK334XPuzcnyC
TaM/Y41c2ddW6r+cAbSUxjsrk3SzzHuUnEGstst3wAKNmdcMips7XMJqHBSl2cNQfEn2
iACjSyEBewwWGxB/u1W8XRzHSL0fMdzzRHRlATZn+07PMTrLQQ8TQDYmZgBrfoTQmw6s
OW+A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1792990628; x=1793595428;
h=content-transfer-encoding:content-type:cc:to:subject:message-id
:date:from:in-reply-to:references:mime-version:x-gm-gg
:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to
:content-type;
bh=NmE0VQ+wznagLm9e5H9L0D7qy28CLOCQdbzYNhXER30=;
b=JOdXFIHAW3BBPqGeGzv3g3upBvN8YmY9Di4X4lCkfdeMPn3QHI2nSFdp2SDyFgFMYZ
T/X5gSJ6cgC5Kn3SrgYa6+tNY7EQYdanHjLrI4kVRASV85fsvORydXXn4BGJaDrGuLFG
q9Qf5MvmUgfNdi4X+6tjcLm/CYLo0yA1pHeaid7VyCyZJghjQnsAuHs3YBSDszrpZRkx
uWfTqxqMBtfiCBC6kUyek4MRDsm1KZ5/WCgZceJrh9r834ItojmDxftM+7M33vpoDQU+
ZFS3IMyjNy+E2E2dJJqedVcHx1VXEJIzDuc441F/3X/VnNk+j9VNl0/rxj4G95/xtQ1B
D8hg==
X-Forwarded-Encrypted: i=1; AKwUvByXz40ElquwCUaPnDWqn+EAvvUdNgLWrL815+vpuokb8nxCh21b04qMVWSHen+6BTDjQOo=@vger.kernel.org
X-Gm-Message-State: AFq9FYJ1DCW3NWDjbbLQmUuWdfjnFOvjW1N97F5c7bj60rtpofq5H906
LFfCa1LyMY9VpG1u9BVBtgfFkR1gZxm0Leigongtl0YfM6TM9IReYfzsuId78ORdnx21RVhjgZX
WLfN36gDIHZVcBM2KKaBIponxal+F2m+yHNTa
X-Gm-Gg: AYBFou0ZjCzbiWmy7T5tcByxIJXAeuN6hs4kP0bEOdolPX3sef0dSw7vAXsjIalPO/z
CQvZcbTCNa4FSA9R2sDXeP36MnnT9YskrQpBf6TpOYutmt69zZrX6ct8MH5MCQ/jJn9Rxb0xPm+
8NjwTs1PK/e8gEPulG74Bnzu5BydtGpyD48/NdR8nVPaqPZ7LFicz2aJlY8bFlK6+YdVVkpiFeq
JPoOBZ8WkbuUHXHN0OQl7J8reoOtQwdCavx9EUhwt8KzSwbtkA56pnD+27FpKto3QUD/nDU1sMs
7J3WxnQD4ncXUUNrSDXKOhy2GBoB0Wi3At7A4LVJBjx+9wu7ySKTosbvfEvQH8XdJdxSXWyRw6t
36rImVP2KxQqhVNmyQjJNhWpHBq/uK3j1c/lRzw==
X-Received: by 2002:a05:6830:3481:b0:821:cee2:489e with SMTP id
46e09a7af769-850fb932258mr4487547a34.2.1792990627868; Sun, 25 Oct 2026
21:57:07 -0700 (PDT)
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
X-In-Reply-To: <xmqqjyn5w2l2.fsf@gitster.g>
X-Gm-Features: AclHuK-9a2Ww67idADMEsuVf87KXNuegvmMGlwf46ARQLlvQHGsFavKU6HnLh70
X-Cc: Jeff King <peff@peff.net>, git@vger.kernel.org