summaryrefslogtreecommitdiff
path: root/http-push.c
diff options
context:
space:
mode:
authorTay Ray Chuan <rctay89@gmail.com>2009-10-30 17:47:20 -0700
committerJunio C Hamano <gitster@pobox.com>2009-10-30 19:20:53 -0700
commit609621a4ad8144e56df6e5f811eb037661967f49 (patch)
treeb1576db5f7a054e75fc1e23b65405aa92a27a8a3 /http-push.c
parentc274db7057318835e975c26284f6f9d723b938f3 (diff)
downloadgit-609621a4ad8144e56df6e5f811eb037661967f49.tar.gz
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>
Diffstat (limited to 'http-push.c')
-rw-r--r--http-push.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/http-push.c b/http-push.c
index 00e83dcec1..cc5d4b8c32 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);
}