git/list[1] front-page[2] threads[3] people[4] search[5] about
 

git object-count differs between clones

From
AMAndrew 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
Next: Matthieu Moy
Message 1 of 7 in “git object-count differs between clones”
  1. Andrew MartinFeb 2, 2016
  2. Matthieu MoyFeb 2, 2016
  3. Andrew MartinFeb 2, 2016
  4. Jeff KingFeb 2, 2016
  5. Andrew MartinFeb 2, 2016
  6. Jeff KingFeb 3, 2016
  7. Andrew MartinFeb 3, 2016

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.