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

Re: git object-count differs between clones

From
Matthieu Moy <matthieu.moy@grenoble-inp.fr>
Date
Feb 2, 2016, 16:09 UTC
Message-ID
<vpq7finm6v8.fsf@anie.imag.fr>
In-Reply-To
<2142875754.710575.1454428371555.JavaMail.zimbra@xes-inc.com>
Andrew Martin <amartin@xes-inc.com> 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 reflog is not propagated, pushing + cloning will not transfer these objects if the reflog is the only way to reach them.

You may try expiring your reflog and "git gc" again.
-- 
Matthieu Moy
http://www-verimag.imag.fr/~moy/
Previous: Andrew MartinNext: Andrew Martin
Message 2 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.