From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qk1-f177.google.com (mail-qk1-f177.google.com [209.85.222.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 13A9E37107E for ; Mon, 23 Feb 2026 19:43:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.177 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771875823; cv=none; b=QTl9uvEl0E1IBSA2uT5g2GRKGvo9MNkAVIxYZUQPleTs17vL7Ah9fAGIFMPTd8kbBvPIrFWGwMY9dwBMUpdmpW81FhKqGuNTa7jHrn1T3ZY8084Ohw1VPHRQBei5Mq/QppEnf9YtdzvLrS19MDFzrwN881vnWCVmqaS0cbJqEz0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771875823; c=relaxed/simple; bh=BXKnxJAYzI5+BQyq4ke6xQZoUjJgWhMNKWdahyYmu6g=; h=Message-Id:In-Reply-To:References:From:Date:Subject:Content-Type: MIME-Version:To:Cc; b=lS5ceWxcVI2VgK6cnka0+ImATNM7zIuNBYYFFEtRXK6DxenHHSqyAOU3KU6FGo0KEXOubKFrSSKWkvDSu5IhNrr4KvFR7EHEM1Bi2pFCAFPQxJ5nPcZF0rETUvdNB2qwQTarpLApj6f9+9/pYTzGhsaDx+3LuXU/p8hyySi69Ak= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=Yx2Ceuf3; arc=none smtp.client-ip=209.85.222.177 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Yx2Ceuf3" Received: by mail-qk1-f177.google.com with SMTP id af79cd13be357-8c6f21c2d81so457677685a.2 for ; Mon, 23 Feb 2026 11:43:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1771875821; x=1772480621; darn=vger.kernel.org; h=cc:to:mime-version:content-transfer-encoding:fcc:subject:date:from :references:in-reply-to:message-id:from:to:cc:subject:date :message-id:reply-to; bh=6aKeJpnmXGNCGtZ7wzEwaHUJPnmqm1Yzc5DSgNEAels=; b=Yx2Ceuf3rn7uv1gglKIeb528s1dL+keSxJoRcy3yuOFzHdfVt9ajp1QQnTP84ibS27 3L9i30AopKWKGPeTTuLXnE1J0vrz3d+UWLXGSEctM2i+m6XgwrT7Vo9WrfJMUllqBMjl lrn9d18dEFXgiX7FKQHGV684oZq76bBWx2e3Cb379AYss3HvR1wA9yi/04b5JlnSjMKc XN/Zqx4KfVyNo8rY4aS701WlBkSwCyuSd4/LLIob8bFkFfyNys8vV8WWgv/Zv1lWoZOn rUVZrpWA0rKGP/k4FRpG/KwC4fiUe0xs3nCgEUz8H3cba1x87Z0awjFiS1iJVOJFZFF5 bFsw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1771875821; x=1772480621; h=cc:to:mime-version:content-transfer-encoding:fcc:subject:date:from :references:in-reply-to:message-id:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=6aKeJpnmXGNCGtZ7wzEwaHUJPnmqm1Yzc5DSgNEAels=; b=QL7xR9Ys7Kcj3m1lXx1oaHjuyioW62gaNjVk8oPaXOlCgM37iDNmpT3UQDcrPxZOld 9cnyc2kvAEBDqFtWMxFjTiul08OjqyCTTEYy8Qxqy7cvMrJyUPveYo0iCmaKidKQZtYU koB3ppfeN9b8mIMG/JYCKTHJrxq5oCLmmCnJCegB8DLbZwRCijyHPXoAeDp50RYZi7kN xggkfMjywe/lJHhAmWSmR69V+zYEOLCG7I9cPU03r1saQJ52+aFlms6cUOU4GxGs6jvd YVxXydlIStsFqrfVUVfPQggMQJuQkxqLHuZwCWU9adjSfsbj2E2jmtgxgJE15N+VBDI0 UFdw== X-Gm-Message-State: AOJu0YwxDLmyvXkfBnkOr2GiFtNwYjS8Nbh7MkAqMQBu/yhRzLSb19XJ 1ihRP+LwzHIlq79zOXkc6uJuQ1ONplyCNvW5gKKCwqjX+kuYR/XoJ/d5JZsWGQ== X-Gm-Gg: AZuq6aIBA7esosFjY7/9WkT2rUbr4umbarP3IUfx6xf+icVJq01VIcQzpRorX/WB3HS KRAUyyzS+82j85SHsUBIbhkkS4/zywOJf922NM4x26d0NRG6Mi7ceLuxAHlCHJ8kwX5+EIJ9kux 76wLUx4AFi8560iuhb/ltWxJh26lV4LmUHrJO7ubce7WyxalNPA9aKd5G5lPpGRPPNOf6IM0Fsb lTf7sLagfsG5zakH1ICKa3AYpJ6Poq7dntl7kLoIC7FfFRIuWdoKNK5M6hUgPr19YFxcUPINqWj RQbfSNZ7lswu3d3F/ddh0FGMq3XIvoO0VUwoPlEpYt6Rbd6FGZsBC40kcqkHYKvfVwiVzzt5Xxe KJx0vjNrrSkA8htwt2xEb5VDGuKrmBTgcMqSDKm3WRcDVwQZgsHVbM6+JQZJFHPYjN0Bkrp40vf MxU5IVQ697mWBUQo4FpS+0IhOp/9M= X-Received: by 2002:a05:620a:489b:b0:892:5b57:ea41 with SMTP id af79cd13be357-8cb8c9d2672mr1214112285a.4.1771875820492; Mon, 23 Feb 2026 11:43:40 -0800 (PST) Received: from [127.0.0.1] ([135.232.224.163]) by smtp.gmail.com with ESMTPSA id af79cd13be357-8cb8d046055sm925307685a.8.2026.02.23.11.43.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Feb 2026 11:43:39 -0800 (PST) Message-Id: <6ea263fee9fcf670ca2f9f26fa86a76ce0701c9e.1771875812.git.gitgitgadget@gmail.com> In-Reply-To: References: From: "Eslam reda ragheb via GitGitGadget" Date: Mon, 23 Feb 2026 19:43:31 +0000 Subject: [PATCH v3 4/5] t1900: cover repo info path keys and path-format Fcc: Sent Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk X-Mailing-List: git@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 To: git@vger.kernel.org Cc: Karthik Nayak , Justin Tobler , Ayush Chandekar , Siddharth Asthana , Lucas Seiki Oshiro , eslam reda , Eslam reda ragheb From: Eslam reda ragheb Extend t1900 to validate category-key expansion, path.* key behavior, and --path-format handling for git repo info. The tests compare repo info output to equivalent rev-parse values. This ensures behavior remains aligned with existing plumbing semantics. Also keep mixed key/category ordering coverage so callers can rely on deterministic output order when combining explicit keys with category requests. Signed-off-by: Eslam reda ragheb --- t/t1900-repo.sh | 196 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 196 insertions(+) diff --git a/t/t1900-repo.sh b/t/t1900-repo.sh index 51d55f11a5..dcacf84cc3 100755 --- a/t/t1900-repo.sh +++ b/t/t1900-repo.sh @@ -10,9 +10,40 @@ REPO_INFO_KEYS=' layout.bare layout.shallow object.format + path.common-dir + path.config-file + path.git-dir + path.git-prefix + path.grafts-file + path.hooks-directory + path.index-file + path.logs-directory + path.objects-directory + path.packed-refs-file + path.refs-directory + path.shallow-file + path.superproject-working-tree + path.toplevel references.format ' +REPO_INFO_PATH_KEYS=' + path.common-dir + path.config-file + path.git-dir + path.git-prefix + path.grafts-file + path.hooks-directory + path.index-file + path.logs-directory + path.objects-directory + path.packed-refs-file + path.refs-directory + path.shallow-file + path.superproject-working-tree + path.toplevel +' + # Test whether a key-value pair is correctly returned # # Usage: test_repo_info