summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c274db7)
raw | patch | inline | side by side (parent: c274db7)
author | Tay Ray Chuan <rctay89@gmail.com> | |
Sat, 31 Oct 2009 00:47:20 +0000 (17:47 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sat, 31 Oct 2009 02:20:53 +0000 (19:20 -0700) |
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>
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>
http-push.c | patch | blob | history |
diff --git a/http-push.c b/http-push.c
index 00e83dcec1d973b069d4c75105aed96634b00994..cc5d4b8c3284a580b5f67fa9eac2c8e810dbeb9f 100644 (file)
--- a/http-push.c
+++ b/http-push.c
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);
}