Re: Recovering from gc errors
- From
Jeff King <peff@peff.net>
- Date
- Nov 15, 2017, 00:19 UTC
- Message-ID
- <20171115001907.vno7fo4t4bglh35n@sigill.intra.peff.net>
- In-Reply-To
- <3af0f8cc-09f3-bcf2-04c8-f076e0ddcea2@xiplink.com>
On Tue, Nov 14, 2017 at 10:39:31AM -0500, Marc Branchaud wrote:
Show 7 quoted lines
> > rm -rf .git/logs > > Unfortunately, removing the logs directory does not fix "git gc". So I > restored it. > > However I did find all of the bad SHAs in the HEAD logs of four of my > worktrees.
Ah, right. There are more logs than .git/logs these days. That makes sense.
> I'm willing to chalk this up to bugs in the early worktree code, unless one > of the CC'd worktree developers thinks otherwise.
Perhaps fixed by acd9544a8f (revision.c: --reflog add HEAD reflog from all worktrees, 2017-08-23). I think before then that prune/repack would consider those objects unreachable.
-Peff