Re: Bug in "revision.c: --all adds HEAD from all worktrees" ?
- From
Jeff King <peff@peff.net>
- Date
- Nov 17, 2017, 22:03 UTC
- Message-ID
- <20171117220300.5zvyjwxgi2425m7z@sigill.intra.peff.net>
- In-Reply-To
- <CAE5ih79TojvBv4OZnHejm3Huypg=6KVmDqJURGN+uk+izkH0xw@mail.gmail.com>
On Wed, Nov 15, 2017 at 09:38:26PM +0000, Luke Diamand wrote:
Show 10 quoted lines
> >> Quite a few of the worktrees have expired - their head revision has > >> been GC'd and no longer points to anything sensible > >> (gc.worktreePruneExpire). The function other_head_refs() in worktree.c > >> bails out if there's an error, which I think is the problem. I wonder > >> if it should instead just report something and then keep going. > > > > Also see > > https://public-inbox.org/git/CAGZ79kYP0z1G_H3nwfmSHraWHMBOcik5LepUXKj0nveeBrihiw@mail.gmail.com/ > > So is this a bug or user error on my part?
It's a bug. You didn't do anything wrong, but the worktree feature corrupted your repository.
-Peff