]> git.ipfire.org Git - thirdparty/git.git/commit
receive-pack: use default version 0 for proc-receive
authorJiang Xin <worldhello.net@gmail.com>
Wed, 11 Nov 2020 11:32:02 +0000 (19:32 +0800)
committerJunio C Hamano <gitster@pobox.com>
Wed, 11 Nov 2020 20:46:56 +0000 (12:46 -0800)
commit80ffeb94f4c9eae4e099fec47e39105fc1e19132
treec2f5ac59cee627ff251ce1fc09da78e17824c255
parentf65003b4c4abea49a00cc9f3d87b9f37db6b48f1
receive-pack: use default version 0 for proc-receive

In the verison negotiation phase between "receive-pack" and
"proc-receive", "proc-receive" can send an empty flush-pkt to end the
negotiation and use default version 0. Capabilities (such as
"push-options") are not supported in version 0.

Signed-off-by: Jiang Xin <zhiyou.jx@alibaba-inc.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/receive-pack.c
t/helper/test-proc-receive.c
t/t5411/test-0026-push-options.sh
t/t5411/test-0027-push-options--porcelain.sh