Skip to content

Commit e141f07

Browse files
committed
smart_protocol: fix parsing of server ACK responses
Fix ACK parsing in wait_while_ack() internal function. This patch handles the case where multi_ack_detailed mode sends 'ready' ACKs. The existing functionality would bail out too early, thus causing the processing of the ensuing packfile to fail if/when 'ready' ACKs were sent.
1 parent e476d52 commit e141f07

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/transports/smart_protocol.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,8 @@ static int wait_while_ack(gitno_buffer *buf)
325325

326326
if (pkt->type == GIT_PKT_ACK &&
327327
(pkt->status != GIT_ACK_CONTINUE &&
328-
pkt->status != GIT_ACK_COMMON)) {
328+
pkt->status != GIT_ACK_COMMON &&
329+
pkt->status != GIT_ACK_READY)) {
329330
git__free(pkt);
330331
return 0;
331332
}

0 commit comments

Comments
 (0)