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

RE: recovering from "unordered stage entries in index" error

From
McHenry, Matt <mmchenry@carnegielearning.com>
Date
May 22, 2015, 18:56 UTC
Message-ID
<D377A9280DB18546A2471214D5CBB0E9087568F47B@exchdb01>
In-Reply-To
<CACsJy8Bdx5tto0w1q7rZ1ORx8RmHZCEKPyBqYs37k=YvbO3kzA@mail.gmail.com>
Show 6 quoted lines
> > Isn't this failure coming from git-svn that tries to write out a
> > tree after it prepared whatever it wants to record in its (possibly
> > temporary) index?  I have a feeling that the index held by the end
> > user is not broken.
> 
> Ahh that would explain why ls-files works. Yep.
	I created a copy of this repo + wc via rsync and tried a couple of things.  'git svn rebase -l' worked fine, but didn't fix the error.  Next, reset:

$ git svn log --limit=1 | grep ^r r231655 | avuong | 2015-05-10 10:32:16 -0400 (Sun, 10 May 2015) | 2 lines

$ git svn reset -r 231655 -p r231653 = 13a7f6d6a3f3e44ed1c8523b1a63d72fc4f0ddb9 (refs/remotes/trunk)

$ git svn fetch fatal: unordered stage entries in index write-tree: command returned error: 128

	So it doesn't seem to be specific to the revision being fetched.  I could do a more drastic 'git svn reset', but as you can see I've already fetched a lot of revs, so I'd rather avoid re-fetching if possible.
	Thanks for your help so far -- any other ideas (or requests for further debugging info) are appreciated!
Previous: Duy NguyenNext: Duy Nguyen
Message 8 of 17 in “recovering from "unordered stage entries in index" error”
  1. McHenry, MattMay 19, 2015
  2. Junio C HamanoMay 19, 2015
  3. McHenry, MattMay 19, 2015
  4. Duy NguyenMay 21, 2015
  5. McHenry, MattMay 21, 2015
  6. Junio C HamanoMay 21, 2015
  7. Duy NguyenMay 22, 2015
  8. McHenry, MattMay 22, 2015
  9. Duy NguyenMay 23, 2015
  10. McHenry, MattMay 23, 2015
  11. Duy NguyenMay 24, 2015
  12. McHenry, MattMay 26, 2015
  13. Duy NguyenMay 26, 2015
  14. Junio C HamanoMay 22, 2015
  15. McHenry, MattMay 22, 2015
  16. Junio C HamanoMay 23, 2015
  17. McHenry, MattMay 23, 2015

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.