From: Junio C Hamano Date: Thu, 26 Nov 2026 17:52:37 GMT Subject: Re: [PATCH v2] remote-curl: honor --no-thin when pushing Message-ID: In-Reply-To: "Julian Maurin via GitGitGadget" writes: > From: Julian Maurin > > "git push --no-thin" to a smart HTTP remote still sends a thin pack. > transport-helper.c does not forward the "thin" option to remote > helpers, and remote-curl always runs send-pack with --thin. > > If one pushes from a shallow, treeless partial clone > (--filter=tree:0) to an HTTPS remote, a thin push lazily fetches > every advertised tip's missing tree from the promisor one by one, > and --no-thin has no effect over HTTP to avoid it. Incorporating this use case into the commit message makes the motivation immediately clear. In builtin/pack-objects.c:cmd_pack_objects(), creating a thin pack in a shallow repository passes --objects-edge-aggressive to the internal rev-list walk, which visits trees of boundary commits; dropping --thin switches to --objects and avoids those lazy promisor fetches. Will replace. Let me mark the topic as ready for 'next' unless somebody objects (but I suspect that the rest of this week is relatively slow, so I'll wait for a bit longer than usual).