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

Re: git gc error with git 2.37.2? (Introduced in 5a5ea141e7)

From
PWPaul Wagland <pwagland@gmail.com>
Date
Oct 17, 2022, 18:25 UTC
Message-ID
<3C065146-04F5-4946-B38B-8F1DD44AC10E@gmail.com>
In-Reply-To
<Y02T9ssqqwX3mfRj@coredump.intra.peff.net>
Hi Peff,
Show 13 quoted lines
> I'd expect that the resolve-undo extension would eventually be dropped
> once a merge is finished, but I'm not very familiar with that code. Is
> the repository in question mid-merge, or does it happen all the time?
> 
> If there are no changes you need to keep in the index or working tree,
> I expect that a workaround would be:
> 
>  rm -f .git/index
>  git reset
>  git update-index --refresh
> 
> to rewrite the index from scratch. Then the problem should not recur, as
> you'd be using a version with 5a5ea141e7 from here on out.
Thanks! This did the trick for me! I suspect that the problem happened at some point in the past, when I was doing a git merge and git gc concurrently. A whole whack of stuff required recovering at that point in time, and it all appeared to work with the old version. But probably something was still left in the index that referred to, indirectly, 1d0f34d1c.
My problem is now solved, I’ll also feed this back to git-users. Thanks!

Cheers, Paul

Previous: Jeff King
Message 3 of 3 in “git gc error with git 2.37.2? (Introduced in 5a5ea141e7)”
  1. Paul WaglandOct 17, 2022
  2. Jeff KingOct 17, 2022
  3. Paul WaglandOct 17, 2022

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.