From: Tay Ray Chuan Date: Sat, 31 Oct 2009 00:47:20 +0000 (-0700) Subject: http-push: fix check condition on http.c::finish_http_pack_request() X-Git-Tag: v1.6.6-rc0~22^2~36 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=609621a4ad8144e56df6e5f811eb037661967f49;p=git.git 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 Signed-off-by: Shawn O. Pearce Signed-off-by: Junio C Hamano --- diff --git a/http-push.c b/http-push.c index 00e83dcec..cc5d4b8c3 100644 --- a/http-push.c +++ b/http-push.c @@ -604,7 +604,7 @@ static void finish_request(struct transfer_request *request) preq = (struct http_pack_request *)request->userData; if (preq) { - if (finish_http_pack_request(preq) > 0) + if (finish_http_pack_request(preq) == 0) fail = 0; release_http_pack_request(preq); }