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.
This commit is contained in:
Roger Gee 2017-06-10 11:46:09 -05:00
parent e476d5288c
commit e141f07996

View File

@ -325,7 +325,8 @@ static int wait_while_ack(gitno_buffer *buf)
if (pkt->type == GIT_PKT_ACK && if (pkt->type == GIT_PKT_ACK &&
(pkt->status != GIT_ACK_CONTINUE && (pkt->status != GIT_ACK_CONTINUE &&
pkt->status != GIT_ACK_COMMON)) { pkt->status != GIT_ACK_COMMON &&
pkt->status != GIT_ACK_READY)) {
git__free(pkt); git__free(pkt);
return 0; return 0;
} }