From: Paul Wagland <pwagland@gmail.com>
To: Jeff King <peff@peff.net>
Cc: git@vger.kernel.org
Subject: Re: git gc error with git 2.37.2? (Introduced in 5a5ea141e7)
Date: Mon, 17 Oct 2022 20:25:33 +0200 [thread overview]
Message-ID: <3C065146-04F5-4946-B38B-8F1DD44AC10E@gmail.com> (raw)
In-Reply-To: <Y02T9ssqqwX3mfRj@coredump.intra.peff.net>
Hi Peff,
> 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
prev parent reply other threads:[~2022-10-17 18:25 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <ebb035c1-d313-4f8e-b850-a6e11eeb374bn@googlegroups.com>
2022-10-17 17:10 ` git gc error with git 2.37.2? (Introduced in 5a5ea141e7) Paul Wagland
2022-10-17 17:42 ` Jeff King
2022-10-17 18:25 ` Paul Wagland [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3C065146-04F5-4946-B38B-8F1DD44AC10E@gmail.com \
--to=pwagland@gmail.com \
--cc=git@vger.kernel.org \
--cc=peff@peff.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox