Browse Source

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>
maint
Tay Ray Chuan 15 years ago committed by Junio C Hamano
parent
commit
609621a4ad
  1. 2
      http-push.c

2
http-push.c

@ -604,7 +604,7 @@ static void finish_request(struct transfer_request *request) @@ -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);
}

Loading…
Cancel
Save