transport-helper: mark failure for atomic push
commitf38b16843dcbb575803dfeab39a4172b7469411d
authorJiang Xin <zhiyou.jx@alibaba-inc.com>
Fri, 17 Apr 2020 09:45:35 +0000 (17 05:45 -0400)
committerJunio C Hamano <gitster@pobox.com>
Fri, 17 Apr 2020 19:16:32 +0000 (17 12:16 -0700)
treeb01a7e8275694f9c0c5e6d84dc79d62ed83d9ff7
parent46701bde690f94fb1532bce110eae93d5f6b68a1
transport-helper: mark failure for atomic push

Commit v2.22.0-1-g3bca1e7f9f (transport-helper: enforce atomic in
push_refs_with_push, 2019-07-11) noticed the incomplete report of
failure of an atomic push for HTTP protocol.  But the implementation
has a flaw that mark all remote references as failure.

Only mark necessary references as failure in `push_refs_with_push()` of
transport-helper.

Signed-off-by: Jiang Xin <zhiyou.jx@alibaba-inc.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t5541-http-push-smart.sh
t/t5548-push-porcelain.sh
transport-helper.c