{"thread":{"id":"41556","subject":"Re: Bug#813084: Background git gc fails, telling me to run git prune, which doesn't help","startedAt":"2016-02-27T22:50:04Z","lastAt":"2016-02-27T22:50:04Z","messageCount":1,"participants":["Ben Hutchings"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"279676","messageId":"1456613404.3098.23.camel@decadent.org.uk","threadId":"41556","inReplyTo":"CACsJy8Ai9dW3mLOEidsyh2yw29-2zvYRGB1LZN51B-L4QHMQ2w@mail.gmail.com","subject":"Re: Bug#813084: Background git gc fails, telling me to run git prune, which doesn't help","fromName":"Ben Hutchings","fromEmail":"ben@decadent.org.uk","sentAt":"2016-02-27T22:50:04Z","receivedAt":"2016-02-27T22:50:04Z","isPatch":false,"sender":{"key":"ben@decadent.org.uk","avatar":null},"body":"Control: forwarded -1 git@vger.kernel.org\n\nOn Fri, 2016-01-29 at 21:05 +0700, Duy Nguyen wrote:\n> On Fri, Jan 29, 2016 at 8:35 PM, Ben Hutchings <ben@decadent.org.uk> wrote:\n> > git keeps trying to do a background gc on my linux repository, but\n> > fails, reporting this in .git/gc.log:\n> > \n> > warning: There are too many unreachable loose objects; run 'git prune' to remove them.\n> > \n> > However, after running 'git prune' and 'git gc' (which succeeds), git\n> > soon tries to a background gc again, resulting in the same error.\n> > \n> > Let me know what I can do to get any further diagnostic information.\n> \n> Make sure nobody is accessing the repository before you do this:\n> \n> git prune --expire=now\n> \n> Then you can try \"git gc --auto\" again to see if it is still\n> complaining. Report back on git@vger.kernel.org in that case.\n\nOK, I've now done that and I get the same failure.  But\n'git gc --prune=all' seems to work:\n\n$ git gc --prune=all\nCounting objects: 6479254, done.\nDelta compression using up to 4 threads.\nCompressing objects: 100% (939232/939232), done.\nWriting objects: 100% (6479254/6479254), done.\nTotal 6479254 (delta 5503044), reused 6479254 (delta 5503044)\nChecking connectivity: 6479254, done.\n\nI kept a backup of the .git directory so I can run further experiments\non that.\n\nBen.\n\n-- \nBen Hutchings\nEvery program is either trivial or else contains at least one bug"}]}