Skip to content

pr-2328/JulianMaurin/push-no-thin-over-http-v1

tagged this 25 Nov 08:38
From: Julian Maurin <julian.maurin.dev@proton.me>

"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.

"thin" was left out of the forwarded options of ef08ef9ea0
(remote-helpers: Support custom transport options, 2009-10-30) after
review noted that --no-thin did nothing on any transport at the time.
f7c815c3ee (push: respect --no-thin, 2013-08-12) made it work again,
but only for the native transports.

Forward "thin" to helpers and teach remote-curl to honor it. A helper
that does not know the option answers "unsupported", which push
ignores, so it keeps working as before.

Signed-off-by: Julian Maurin <julian.maurin.dev@proton.me>

Submitted-As: https://lore.kernel.org/git/pull.2328.git.1795595886592.gitgitgadget@gmail.com
Assets 2
Loading