Skip to content

Commit

Permalink
http-push: fix check condition on http.c::finish_http_pack_request()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
rctay authored and gitster committed Oct 31, 2009
1 parent c274db7 commit 609621a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion http-push.c
Expand Up @@ -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);
}
Expand Down

0 comments on commit 609621a

Please sign in to comment.