Article View: linux.kernel.git
Article #1371[Discussion] t1006: testing %(rest) with object names containing whitespace
From: jyotish kumar
Date: Sat, 24 Oct 2026 06:47
Date: Sat, 24 Oct 2026 06:47
28 lines
12199 bytes
12199 bytes
Hi, While exploring t/t1006-cat-file.sh, I came across the test for the %(rest) format atom in git cat-file --batch-check. The test currently contains a FIXME explaining that %(rest) is incompatible with object names containing whitespace, such as HEAD:path/to/a/file with spaces. It uses test_expect_failure for that case and mentions using the resolved object ID as input instead of the original object name. I investigated this test and noticed that the run_tests() helper already has access to the resolved object ID through $oid. I tried using $oid as the input to the %(rest) test rather than $object_name. With this change, the focused t1006-cat-file.sh test passed all 423 tests locally. Before preparing a patch, I wanted to ask whether this is the intended approach for testing %(rest) here, and whether removing the conditional expected-failure logic and using the resolved object ID would be a worthwhile improvement. I would appreciate your guidance on whether this is worth pursuing or if there is a reason to retain the current test behavior. Thanks,
Technical Details
Message-ID:
<CAGjZMyRqv5RsLF4Vo439zy4urfr+R=CTwuDzmYjiemauuZan0Q@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-73131-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-73131-linux-kernel-git=dewy.ru
From: jyotishkumar725015@gmail.com (jyotish kumar)
Newsgroups: linux.kernel.git
Subject: [Discussion] t1006: testing %(rest) with object names containing whitespace
Date: Sat, 24 Oct 2026 12:17:53 +0530
Organization: Usenet Network
Message-ID: <CAGjZMyRqv5RsLF4Vo439zy4urfr+R=CTwuDzmYjiemauuZan0Q@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Injection-Info: usenet.network;
logging-data="701589"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:p/nhFTHUruvB3KapZ2nSnKI6ASM= sha256:JDmXW/tHxacB0s6ignmq7qYOz955IPnT9eW6sZ7ULPM=
sha1:HQVJZNPyaHb/auef9O2eFiB0Mds= sha256:OA32kRmkDSImFU8FOJPtKPY8ScJFaEGcEFWZIVyGn/I=
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 9E3411115F2; Sat, 24 Oct 2026 09:48:27 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -1.947
X-Spam-Status: No, score=-1.947 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, 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, URIBL_BLOCKED=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 4Vb52E7WCU6E;
Sat, 24 Oct 2026 09:48:20 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=git+bounces-73131-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 sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
by mail.dewy.ru (Postfix) with ESMTPS id 43B5D1115F0; Sat, 24 Oct 2026 09:48:12 +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 4815E37D3E; Sat, 24 Oct 2026 06:48:07 +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=1792824487;
b=Sdijn4uA7uEWDLSpwsKz+IUmmiRtqcl5dZCpnXMXUDauXyoXwzW/faut6N/eJSpoj4OM
4ico4QfBMZCbzOo+ONNDB1uQfxnuoWLpMYRvmcdkLr/RdNW7igRazUqAsynZzrYobSHoz
wYz7wUPpXFhMBz8LHOxW5Eu0uoPzyIJPiftEVBIEoCQ3ppKjixP+ns3ZRl6PnkuDZMA3b
+z1uVHHUiDbLQ7FjCx+Xgbq0wDrEYSj8cZiS1XC21DFjrHP8p/pLLAcHBoDkFjIougSMU
LY7nqr2slpoLkyqZ+ZpKjm6CQdMEHesMysG6yTDZ4UhU97rWW1ca+LEx8ZpM3Coo6aA==
X-ARC-Message-Signature: i=3; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1792824487;
h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:
X-Google-DKIM-Signature: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:From:Date:
X-Gm-Features:Message-ID:Subject:To:Content-Type;
bh=zgmZYCC3IfdtHw4ED5yLgMWZaaafegMiS3wdKRm67lw=;
b=bUuVmQqmFZkllrJGkRXmcJ/XQgD9b2Q7hBnL3Al9KqKA1QaZLgHNmC4tI5tc7z+V0dCK
Jwj3ZWmKW6txMxgPaB6Q3GeQmWNtmQgclPscp6ilzsBLwaF3BPPXQL3qBDweSsNxeOXHZ
gapvRPhSAdrx+1U5X1QyKSyeXsOvFIweOyhvS03Uq9LJSoY8pTaMAKE0ItxWjiY53splo
iFMQKScljwzQ+/VodCESC1BffHlRPIHVegUMD7fPh4NVHcnDbS/ok1UKfYXt8yFnVPJw8
cAFKp7+KgXQoEDmNd3gE0Qd4izJJHaoJLwPJ8+wyixi2fdcqF80Cd6KJ34nkmL/9hiQ==
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=qIyYpZ9x;
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 1FE84606A321;
Sat, 24 Oct 2026 06:48:07 +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=qIyYpZ9x
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=209.85.161.44
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
t=1792824486;
b=jl/YLmmHreVhjYFTqRxkKBLoCVKj1ODrcggRax1vRa2FJCG8ogPiEoK3UBwzS4tpEBvT
kZRr39FuGg+hzIqP+v+8f0/8iiWiIup9t4PPwGe/r5NK7s/mKDFH2TETeoazTh3IoXdsh
CSsNobWlGYKzXnmy+rddEYm05TTcsMjKga6wcFM9duuzH4l1M+YIx+ekeR5JiX/r0MJce
+dioCv06MpW8govVEdsVTz/zNQqRcYW046Q/9OWU1nV1yeBKGDJ091cC6tuddNXUhrNPJ
VHlTalHiUj9U+vTw/LLim+6Y1nm3DTAFJafrvQZUUizwuOSYVXYptrSqxMPLHKkEJ2g==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1792824486;
h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature:
X-Gm-Message-State:X-Gm-Gg:X-Received:MIME-Version:From:Date:
X-Gm-Features:Message-ID:Subject:To:Content-Type;
bh=zgmZYCC3IfdtHw4ED5yLgMWZaaafegMiS3wdKRm67lw=;
b=Ghcy+pwsnMG5sF5SIijj94btLLskWhWCkZdv4KvuFhdvt09mA23xOwC/ZuEtyhqu4h3p
mLsxHhIOWd3elLsTgoN03GAtWJT262pM7fYUB0pXSohLgPPA4SF+L3lQAMd4N/QZ/qI4F
g24gZT6kpd1AaNXKEqQAYFQ42CEbwpZr9CjipRbEvihWr92pIOSBVvgLc4INaHP4Vy8lA
J1UczzXB/HA6fk7OfT74NW/0qgm/Pt0Q+PbmNHAmWEFxJAbNt92vxYhcZx9r4gtGioX1a
sRhf8nnOLfTqWYlxPg3I628/0MzZ0SQXVx1UD/RtkSwpP3sQkIf18AwpUtrlfFgYYuw==
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=qIyYpZ9x;
arc=pass header.oldest-pass=0 smtp.remote-ip=209.85.161.44
X-Received: from mail-oo1-f44.google.com (mail-oo1-f44.google.com [209.85.161.44])
(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 DBFDE606A31A
for <git@vger.kernel.org>; Sat, 24 Oct 2026 06:48:05 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org DBFDE606A31A
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-oo1-f44.google.com with SMTP id 006d021491bc7-6d7e06dbcccso849096eaf.3
for <git@vger.kernel.org>; Fri, 23 Oct 2026 23:48:05 -0700 (PDT)
X-ARC-Seal: i=1; a=rsa-sha256; t=1792824485; cv=none;
d=google.com; s=arc-20260327;
b=EozR3Q7hVj51TFtwv+iAFjF29XXwiTHlnkTMKfoQVsUaZVdjGPETVakMMYjMPhIrIs
XlV8AlClVci+GllU35Q+w6hWr/PwH/q/9hVHs0zAZRnc6QN76YKp8Q0xThNQuWeSUGvp
rgUnUdl9EDBtVe9yY4tMaYo2BPLoxD5Eams9TrGDEdPq63OovX4fcIQ8vO9AoPEH/dhg
M8tHC0TKZj1OHqnphhBioWi+ZnZ74kHxKteYU5CVpy9QeCPBZfuVUHrune7ldgS8bKIU
piHpmoTqa8Ck3FzpsUAm3ln6dL+S9o3IXBl/4JoXXh/NoX9331DVrvSJq1mLjHv/maJx
f7yg==
X-ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327;
h=to:subject:message-id:date:from:mime-version:dkim-signature;
bh=zgmZYCC3IfdtHw4ED5yLgMWZaaafegMiS3wdKRm67lw=;
fh=AdLvfp5rDLFEqEXBqPWoMWgsTSDK6pd8NZNu0VEubK4=;
b=FLrgfm5X4HkbuWNDQ1gPOs8lBp+ilHhCYqb55u8/Jvs7YiW9PSrRwSY/iHQWa2d4WK
rphIzeSBp5i0lUGvAox/oYodUVR06zUeMrV279FSsKiQayipR5JwD80UwkWK52a7pVG2
hz5rnopem5nI+PT2+v4FSPAcaf+s/aqID/lJh8HHY8om2c97PUVm6q0GQ2OYo4KUBIQn
GSrqoOJGgX/7672WSTr9EWgiIBwV2QS7ZsrKD007bFW+K1cHDglrJ/1lMALDy1jeOYwL
MhtyscDdqBljAYNeQ7f/BhCcf4XiSmF8+X4K1nn0bVrtm4hxyEVrZ5dWpp/yy7tvEZfK
NrQQ==;
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=1792824485; x=1793429285; darn=vger.kernel.org;
h=content-type:to:subject:message-id:date:from:mime-version:from:to
:cc:subject:date:message-id:reply-to:content-type;
bh=zgmZYCC3IfdtHw4ED5yLgMWZaaafegMiS3wdKRm67lw=;
b=qIyYpZ9xhSvC3TpS7n57G9BtI9h1NBDFUSSztR+40jeu0D7IJBApYWbadaKZUQk9Zp
g7vw55fSoPpS4OUqYJYlPtvgEbhBUhoNyc6BLJ3hrR29uQNqYv5PupGnZsiTSZ9Vueqo
0ndhOsaGD5CL/3IKIgRz+wbDNt6BidJm3ANUGMsZ5MIB9OvQ7hr0ytHIe0sZv8fCViXw
eRHdUhSt5BKEh1ukC7M1fEmjYOeZbFxllM3LHNzuxzTxN0mz3io0VJGApkRZ2HmScsfj
FxOZKhfuy+h10fmk7UfSGfyuwFOT9gprxM68qTOncfl6WY9vJrLw68XCqpHF7dPkv3Cx
5bRA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1792824485; x=1793429285;
h=content-type:to:subject:message-id:date:from:mime-version:x-gm-gg
:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to
:content-type;
bh=zgmZYCC3IfdtHw4ED5yLgMWZaaafegMiS3wdKRm67lw=;
b=jAT/VpC5HouyZW94P91mDA/Cz6xuVR86IwNe7793rao/0AVElKFAOpih7c9lXgm85/
We6GzQuuWHBffyg/z57XWMNz6qfS0LZFShfes2DRCmNGBUHFIAtoQuRs0i4PRh6re54J
bWMfJv7PscPUp4FhNkIMNoYYG8mItl7Mq+ZAvfwG+JZfrkkw0RTTAywFQmxWGjpYtTRp
uAyNCx+Imlu7GjpzDiGolxxbAR3SAsvDfuIvmcbP7eZPeXIhJ6E1TzzQPkrACN8cm0mx
tEm4K9OLyo45+E/g8Rgp2BXNZ6EBDw7jLstSlWAxlnVh0N7pFcqQUuX30vao5BVCDJmm
BDMg==
X-Gm-Message-State: AFq9FYImcHQYH9imBjmqbdw09BnW7K/Qzb/2ogYC7OKVjq4V7AQYjoOg
46sHEf5l6vQWugb535l+RyZSCNUzSgHC+UuXJUvn/RqA8DI3ZGdHwrMhZJlnxacHvV2WED2dMT0
ojlKkUpHY9m6K0avVG7dXCaEmBWFJHhy8pTUVJSM=
X-Gm-Gg: AYBFou0STuUfuenql6oGVxUU2OhHntr8+20GIL88sIR1bTOe7uxZ/5TFpklQ7WFdLd9
ztTPA4ewsERLJtTpdjCEMURACtyjtoJ1fWmYR20atzB5e4IwSe5hsqctlqtVpAoYbbzQQJFlwGE
7GiulJeAUQIBGpp0l1wsk5rT4H80PiUbTQwWq/6Acy86ZDtXPkzLBViFHzRBF/KjElOLxBJbe7E
7mhRQGtBRWBzAY+JdSS1QM1B0nhsOw6JNxKHM6FweTM63YtuvcHA3b5GwaSF033SaE2zz09Td2N
Kk/aKAXWBbJq/xXqDspZ1hr6YwNNTsvPh0HxtyqlSN2q4TTPvpCq4kZwgYRbfj37evCdf2x/dFH
jwoEeT3X/4JjecU4og5HiaaLVFQeSwM/JGyAQufeP1/3a7OzDp2guPM0fVGA/
X-Received: by 2002:a05:6820:c0db:10b0:6ff:3c22:3053 with SMTP id
006d021491bc7-70ba0e5c47cmr363852eaf.51.1792824484750; Fri, 23 Oct 2026
23:48:04 -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-Gm-Features: AclHuK-FrhfGDO13tnc1jpgAdSh22KqjSjHZ6b-jndX0rW_XF6YE_vucomuvhUE