git object-count differs between clones
- From
- Andrew Martin <amartin@xes-inc.com>
- Date
- Feb 2, 2016, 15:52 UTC
- Message-ID
- <2142875754.710575.1454428371555.JavaMail.zimbra@xes-inc.com>
- In-Reply-To
- <57434188.709288.1454428054374.JavaMail.zimbra@xes-inc.com>
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 Repository: count: 0 size: 0 in-pack: 1258300 packs: 1 size-pack: 593889 prune-packable: 0 garbage: 0 size-garbage: 0
Clone from gogs: count: 0 size: 0 in-pack: 1258270 packs: 1 size-pack: 593884 prune-packable: 0 garbage: 0 size-garbage: 0
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, but still I cannot account for this difference. Can someone explain why these numbers differ, and if this is a problem or not?
Thanks,
Andrew