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

BUG: attempt to trim too many characters

From
Linus Torvalds <torvalds@linux-foundation.org>
Date
Sep 5, 2017, 21:39 UTC
Message-ID
<CA+55aFxW3qcETiMrNk5SqZU+_jtM2Rxeb3mhF=J=c0ChdGm1tg@mail.gmail.com>
I just got this with
   gitk --bisect
while doing some bisection on my current kernel.

It happens with "git rev-parse --bisect" too, but interestingly, "git log --bisect" works fine.

I have not tried to figure out anything further, except that it was introduced by commit b9c8e7f2f ("prefix_ref_iterator: don't trim too much") and it happens with

   iter->iter0->refname = "refs/bisect/bad"
   iter->trim = 15
(where 15 is also the same as the length of that refname).

Not having time to chase this down any more, since I'm busy with the merge window (and that annoying bisect)

              Linus
Next: Jeff King
Message 1 of 9 in “BUG: attempt to trim too many characters”
  1. Linus TorvaldsSep 5, 2017
  2. Jeff KingSep 5, 2017
  3. Linus TorvaldsSep 5, 2017
  4. Jeff KingSep 5, 2017
  5. Linus TorvaldsSep 5, 2017
  6. rev-parse: don't trim bisect refnamesJeff King, Sep 6, 2017
  7. Michael HaggertySep 6, 2017
  8. Linus TorvaldsSep 13, 2017
  9. Jeff KingSep 13, 2017

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.