On Tue, Nov 14, 2017 at 10:39:31AM -0500, Marc Branchaud wrote: > > 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