]> git.ipfire.org Git - thirdparty/git.git/commit - transport-helper.c
push options: pass push options to the transport helper
authorStefan Beller <sbeller@google.com>
Wed, 8 Feb 2017 22:04:00 +0000 (14:04 -0800)
committerJunio C Hamano <gitster@pobox.com>
Wed, 8 Feb 2017 23:45:01 +0000 (15:45 -0800)
commit438fc68462d5839ef6ca231cdcb411105eaf0ba2
treea3cb6629e7da46a4888232c2a789af6954cbf95d
parent6e3a7b3398559305c7a239a42e447c21a8f39ff8
push options: pass push options to the transport helper

When using non-builtin protocols relying on a transport helper
(such as http), push options are not propagated to the helper.

The user could ask for push options and a push would seemingly succeed,
but the push options would never be transported to the server,
misleading the users expectation.

Fix this by propagating the push options to the transport helper.

This is only addressing the first issue of
   (1) the helper protocol does not propagate push-option
   (2) the http helper is not prepared to handle push-option

Once we fix (2), the http transport helper can make use of push options
as well, but that happens as a follow up. (1) is a bug fix, whereas (2)
is a feature, which is why we only do (1) here.

Signed-off-by: Stefan Beller <sbeller@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/gitremote-helpers.txt
t/t5545-push-options.sh
transport-helper.c