On Fri, Jan 29, 2016 at 8:35 PM, Ben Hutchings <b...@decadent.org.uk> wrote: > git keeps trying to do a background gc on my linux repository, but > fails, reporting this in .git/gc.log: > > warning: There are too many unreachable loose objects; run 'git prune' to > remove them. > > However, after running 'git prune' and 'git gc' (which succeeds), git > soon tries to a background gc again, resulting in the same error. > > Let me know what I can do to get any further diagnostic information.
Make sure nobody is accessing the repository before you do this: git prune --expire=now Then you can try "git gc --auto" again to see if it is still complaining. Report back on g...@vger.kernel.org in that case. -- Duy