mirror of
https://github.com/git/git
synced 2024-08-27 03:29:21 +00:00
http-push: fix check condition on http.c::finish_http_pack_request()
Check that http.c::finish_http_pack_request() returns 0 (for success). Signed-off-by: Tay Ray Chuan <rctay89@gmail.com> Signed-off-by: Shawn O. Pearce <spearce@spearce.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
c274db7057
commit
609621a4ad
|
@ -604,7 +604,7 @@ static void finish_request(struct transfer_request *request)
|
||||||
preq = (struct http_pack_request *)request->userData;
|
preq = (struct http_pack_request *)request->userData;
|
||||||
|
|
||||||
if (preq) {
|
if (preq) {
|
||||||
if (finish_http_pack_request(preq) > 0)
|
if (finish_http_pack_request(preq) == 0)
|
||||||
fail = 0;
|
fail = 0;
|
||||||
release_http_pack_request(preq);
|
release_http_pack_request(preq);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue