From: Eslam reda ragheb via GitGitGadget Date: Mon, 23 Feb 2026 19:43:31 GMT Subject: [PATCH v3 4/5] t1900: cover repo info path keys and path-format Message-ID: <6ea263fee9fcf670ca2f9f26fa86a76ce0701c9e.1771875812.git.gitgitgadget@gmail.com> In-Reply-To: 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