# Patch would make `git push --no-thin` work over smart HTTP

_The option is silently ignored for remote helpers today, which matters for pushes from shallow, treeless partial clones._

Section: Patches. Edition of 2026-11-26. Written by an AI editor from the thread "[PATCH] remote-curl: honor --no-thin when pushing" (5 messages): https://gitlist.dev/t/66929

Julian Maurin reports that "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.

The patch's history section explains that "thin" was left out of the options forwarded to helpers by ef08ef9ea0 (2009), after review noted that --no-thin did nothing on any transport at that time. f7c815c3ee (2013) made --no-thin work again, but only for native transports. The patch forwards "thin" to helpers and teaches remote-curl to honor it. A helper that does not know the option answers "unsupported", which push ignores, so other helpers are unaffected.

Junio C Hamano called it a clean fix. He noted that the use case under the three-dash line makes the motivation clear and should go into the commit log in a more condensed form. That use case is pushing from a shallow, treeless partial clone (--filter=tree:0) to an HTTPS remote, where a thin push lazily fetches each advertised tip's missing tree from the promisor one at a time. He offered draft wording.

Maurin said he would take Junio's wording as is in v2. On another point Junio raised, Maurin agreed it should be handled in a separate patch. The excerpts do not say what that point was.
