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

Re: bug in checkout/status ?

From
Jeff King <peff@peff.net>
Date
Mar 5, 2009, 21:07 UTC
Message-ID
<20090305210757.GA20157@coredump.intra.peff.net>
In-Reply-To
<20090305205313.GB16213@spearce.org>
On Thu, Mar 05, 2009 at 12:53:13PM -0800, Shawn O. Pearce wrote:
Show 9 quoted lines
> > Hmm. I get the same behavior here. I notice there is a "libelf" subtree
> > before "libelf-po"; maybe it's a sorting bug? I'll try to investigate
> > more.
> 
> Yup, that must be it.
> 
> JGit created the resulting tree during a merge.
> 
> It sorted "libelf/" before "libelf-po/".  Wrong.  Bad JGit.  Bad!

OK. I was just sort of guessing based on the similarity of the names and the fact that sorting is confusing (as evidenced by the fact that I had no idea if it was wrong or not). But that is definitely it:

  $ git clone git://android.git.kernel.org/platform/external/elfutils std_git
  $ cd std_git
  $ git ls-tree HEAD >jgit
  $ git commit -a -m 'git tree'
  $ git ls-tree HEAD >git
  $ diff -u jgit git

reveal(ed) the difference. But it looks like you have already re-pushed a fixed version.

-Peff
Previous: Shawn O. PearceNext: Shawn O. Pearce
Message 4 of 5 in “bug in checkout/status ?”
  1. Shawn O. PearceMar 5, 2009
  2. Jeff KingMar 5, 2009
  3. Shawn O. PearceMar 5, 2009
  4. Jeff KingMar 5, 2009
  5. Shawn O. PearceMar 5, 2009

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.