X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=connect.c;h=57e25a34bcd7cfc8aa0f2694286c5e9cb3b145ae;hb=40a10462498bdd23d4e49f02867b8be50eb78704;hp=b171c5dbc8c9ecc32f6738d17c339858cbbf76f1;hpb=69779a562a171d9b70bbb17b89e076bd6b16ae6c;p=git.git diff --git a/connect.c b/connect.c index b171c5db..57e25a34 100644 --- a/connect.c +++ b/connect.c @@ -59,8 +59,11 @@ int get_ack(int fd, unsigned char *result_sha1) if (!strcmp(line, "NAK")) return 0; if (!strncmp(line, "ACK ", 3)) { - if (!get_sha1_hex(line+4, result_sha1)) + if (!get_sha1_hex(line+4, result_sha1)) { + if (strstr(line+45, "continue")) + return 2; return 1; + } } die("git-fetch_pack: expected ACK/NAK, got '%s'", line); }