Skip to content

Commit 609621a

Browse files
rctaygitster
authored andcommitted
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 <[email protected]> Signed-off-by: Shawn O. Pearce <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent c274db7 commit 609621a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

http-push.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -604,7 +604,7 @@ static void finish_request(struct transfer_request *request)
604604
preq = (struct http_pack_request *)request->userData;
605605

606606
if (preq) {
607-
if (finish_http_pack_request(preq) > 0)
607+
if (finish_http_pack_request(preq) == 0)
608608
fail = 0;
609609
release_http_pack_request(preq);
610610
}

0 commit comments

Comments
 (0)