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

Re: Serious bug with pretty format strings & empty bodies?

From
Alex Riesen <raa.lkml@gmail.com>
Date
Dec 19, 2007, 18:44 UTC
Message-ID
<20071219184457.GC3015@steel.home>
In-Reply-To
<57518fd10712190632o490af924n61326fddf1819014@mail.gmail.com>
Jonathan del Strother, Wed, Dec 19, 2007 15:32:20 +0100:
> I'm struggling to come up with a minimal test case that confirms this,
> but I seem to be hitting a bug in the pretty string formatter when
> trying to print bodies of commits that don't have bodies.
I tried
    $ git init
    $ git rev-list --pretty=format:"%s%n%b" \
	$(echo -n "Test" |git commit-tree $(git write-tree))

but it works. It is possible that the commit in question is created with an older commit-tree code. Could you try

    git cat-file 18d2480ab689b483ef1ebbdb3f7420904049ba0b

(or any other problematic commit) and post its output here? Or is the repo publised somewhere?

Previous: Jonathan del StrotherNext: Jonathan del Strother
Message 5 of 16 in “Serious bug with pretty format strings & empty bodies?”
  1. Jonathan del StrotherDec 19, 2007
  2. René ScharfeDec 19, 2007
  3. Jonathan del StrotherDec 20, 2007
  4. Jonathan del StrotherDec 20, 2007
  5. Alex RiesenDec 19, 2007
  6. Jonathan del StrotherDec 19, 2007
  7. René ScharfeDec 19, 2007
  8. Jonathan del StrotherDec 20, 2007
  9. René ScharfeDec 20, 2007
  10. Johannes SchindelinDec 20, 2007
  11. Jonathan del StrotherDec 20, 2007
  12. Jonathan del StrotherDec 21, 2007
  13. Junio C HamanoDec 22, 2007
  14. Jonathan del StrotherDec 22, 2007
  15. Jonathan del StrotherDec 20, 2007
  16. Johannes SchindelinDec 20, 2007

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.