Re: git object-count differs between clones

2016-02-03 Thread Andrew Martin
- Original Message - > From: "Jeff King" > To: "Andrew Martin" > Cc: "Matthieu Moy" , git@vger.kernel.org > Sent: Tuesday, February 2, 2016 10:34:12 PM > Subject: Re: git object-count differs between clones > > On Tue, Feb 02, 2016 at 1

Re: git object-count differs between clones

2016-02-02 Thread Jeff King
On Tue, Feb 02, 2016 at 11:22:08AM -0600, Andrew Martin wrote: > Thanks for the clarification. I now ran "git repack -A" followed by > "git gc --prune=now", however I am still seeing the same number of objects. > What > else can I try to successfully mark these and unreachable and garbage collec

Re: git object-count differs between clones

2016-02-02 Thread Andrew Martin
- Original Message - > From: "Jeff King" > To: "Andrew Martin" > Cc: "Matthieu Moy" , git@vger.kernel.org > Sent: Tuesday, February 2, 2016 10:52:46 AM > Subject: Re: git object-count differs between clones > > On Tue, Feb 02, 2016 at

Re: git object-count differs between clones

2016-02-02 Thread Jeff King
On Tue, Feb 02, 2016 at 10:21:17AM -0600, Andrew Martin wrote: > > You may try expiring your reflog and "git gc" again. > > Thanks, I found some commits that are not referenced in any branch. How can I > remove these from the reflog? I tried running > "git reflog expire --expire=now --expire-unre

Re: git object-count differs between clones

2016-02-02 Thread Andrew Martin
- Original Message - > From: "Matthieu Moy" > To: "Andrew Martin" > Cc: git@vger.kernel.org > Sent: Tuesday, February 2, 2016 10:09:31 AM > Subject: Re: git object-count differs between clones > > Andrew Martin writes: > > > I

Re: git object-count differs between clones

2016-02-02 Thread Matthieu Moy
Andrew Martin writes: > I ran "git fsck" on both, which reported no problems. Moreover, I ran "git gc" > and made sure there were no objects pending garbage collection, It's not sufficient: you may have objects reachable from your reflog, hence not candidate for garbage collection. Since the re

git object-count differs between clones

2016-02-02 Thread Andrew Martin
Hello, I am using git 2.7.0 on Ubuntu 14.04. I recently tried pushing a large (90,000+ commits) repository to a gogs server (https://gogs.io/) and then cloning the repository back to my machine. After running "git count-objects -v", I see a discrepancy in the number of objects: Original Repositor