git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Bug Report: git show unnecessarily requires parent tree

From
BIBell, Bob (ISG) <robert.bell@dell.com>
Date
May 23, 2025, 06:15 UTC
Message-ID
<IA1PR19MB88859FF5C7E547010E555E7F8198A@IA1PR19MB8885.namprd19.prod.outlook.com>

What did you do before the bug happened? (Steps to reproduce your issue) Tree-less git partial clone: git clone --filter=tree:0 https://... Remove the promisor to prevent retrieving more objects: git config --local --unset remote.origin.promisor Git show of a fetched commit with limited metadata fields requested: git show --no-patch --format=%ae abc123

What did you expect to happen? (Expected behavior) I expect to get the metadata I requested from the commit, since it is available in the retrieved commit object

What happened instead? (Actual behavior) I get an error attempting to read the tree for the parent of the commit specified: fatal: unable to read tree (abcdef1234567890)

What's different between what you expected and what actually happened? I expected the command to output the requested metadata, since there is no need to read the parent commit, much less the parent's tree object, in order to provide the required data.

Anything else you want to add: Note that the data is fully accessible without error using git cat-file or git log e.g., git log -n 1 --format=%ae abc123

Please review the rest of the bug report below. You can delete any lines you don't wish to share.

[System Info] git version: git version 2.47.2 cpu: x86_64 no commit associated with this build

-- Bob Bell Distinguished Member of Technical Staff Dell | ISG TechOps Robert.Bell@Dell.com

Internal Use - Confidential
Next: Junio C Hamano
Message 1 of 3 in “Bug Report: git show unnecessarily requires parent tree”
  1. Bell, Bob (ISG)May 23, 2025
  2. Junio C HamanoMay 23, 2025
  3. Bell, Bob (ISG)May 23, 2025

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.