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

Re: Can a git push over ssh trigger a gc/repack? Diagnosing pack explosion

From
Junio C Hamano <gitster@pobox.com>
Date
Nov 21, 2013, 19:52 UTC
Message-ID
<xmqq61rl4jo0.fsf@gitster.dls.corp.google.com>
In-Reply-To
<CACPiFC+xbnYjZUG49Em=aDUXnS_3_Cp=ZZBCrQCHM-sL78HCdA@mail.gmail.com>
Martin Langhoff <martin.langhoff@gmail.com> writes:
Show 18 quoted lines
> On Thu, Nov 21, 2013 at 10:21 AM, Martin Langhoff
> <martin.langhoff@gmail.com> wrote:
>> Do client pushes over git+ssh ever trigger a repack on the server?
>
> man git-config
> [snip]
>
>        receive.autogc
>            By default, git-receive-pack will run "git-gc --auto" after
>            receiving data from git-push and updating refs. You can stop it by
>            setting this variable to false.
>
> Oooooops!
>
> Ok, couple problems here:
>
>  - if it's receiving from many pushers, it races with itself; needs
> some lock or back-off mechanism
Surely.
I think these should help:
    64a99eb4 (gc: reject if another gc is running, unless --force is given, 2013-08-08)
    4c5baf02 (gc: remove gc.pid file at end of execution, 2013-10-16)
They should be in the upcoming v1.8.5.
Previous: Martin LanghoffNext: Martin Langhoff
Message 3 of 4 in “Can a git push over ssh trigger a gc/repack? Diagnosing pack explosion”
  1. Martin LanghoffNov 21, 2013
  2. Martin LanghoffNov 21, 2013
  3. Junio C HamanoNov 21, 2013
  4. Martin LanghoffNov 21, 2013

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.