public inbox for git@vger.kernel.org
 help / color / mirror / Atom feed
* Bug Report: git show unnecessarily requires parent tree
@ 2025-05-23  6:15 Bell, Bob (ISG)
  2025-05-23 17:17 ` Junio C Hamano
  0 siblings, 1 reply; 3+ messages in thread
From: Bell, Bob (ISG) @ 2025-05-23  6:15 UTC (permalink / raw)
  To: git@vger.kernel.org

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-05-23 21:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-23  6:15 Bug Report: git show unnecessarily requires parent tree Bell, Bob (ISG)
2025-05-23 17:17 ` Junio C Hamano
2025-05-23 19:36   ` Bell, Bob (ISG)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox