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

Re: There are too many unreachable loose objects

From
Lars Schneider <larsxschneider@gmail.com>
Date
Jun 8, 2017, 12:52 UTC
Message-ID
<987153C6-2F10-4229-8E59-B106604896DF@gmail.com>
In-Reply-To
<20170216225710.6nnbw65qoeb6lrw5@sigill.intra.peff.net>
Show 32 quoted lines
> On 16 Feb 2017, at 23:57, Jeff King <peff@peff.net> wrote:
> 
> On Thu, Feb 16, 2017 at 02:36:10PM -0800, Jacob Keller wrote:
> 
>>> Whenever I run "git push --force(-with-lease)" I get a variation of
>>> 
>>> Counting objects: 187, done.
>>> Delta compression using up to 12 threads.
>>> Compressing objects: 100% (126/126), done.
>>> Writing objects: 100% (187/187), 21.35 KiB | 0 bytes/s, done.
>>> Total 187 (delta 78), reused 71 (delta 20)
>>> warning: There are too many unreachable loose objects; run 'git prune'
>>> to remove them.
>>> To git@git.company.com:project.git
>>> + 51338ea...b0ebe39 my-branch -> my-branch (forced update)
>>> 
>>> So I'll run "git prune" and, for good measure, "git gc" (which even
>>> includes "git prune"?). The first seems to do nothing, the latter does
>>> its thing.
>>> 
>> 
>> It may be that it's the server side that needs to git-prune, and not
>> your local side? I'm not really certain but you're doing a push which
>> talks to a remote server.
> 
> Yes, certainly the position in the output implies that. These days you
> should see:
> 
>  remote: warning: There are too many...
> 
> to make it more clear. Perhaps the server is too old to have 860a2ebec
> (receive-pack: send auto-gc output over sideband 2, 2016-06-05).
Do you know if GHE 2.9.4 has this fix? (Is it OK to ask this here?)
Context: http://public-inbox.org/git/9C2F2EA2-0C59-4EA2-8C8E-10228FB82D90@gmail.com/

Thanks, Lars

Previous: Jeff KingNext: Jeff King
Message 4 of 6 in “There are too many unreachable loose objects”
  1. Hilco WijbengaFeb 16, 2017
  2. Jacob KellerFeb 16, 2017
  3. Jeff KingFeb 16, 2017
  4. Lars SchneiderJun 8, 2017
  5. Jeff KingJun 9, 2017
  6. Lars SchneiderJun 9, 2017

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.