X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=connect.c;h=b171c5dbc8c9ecc32f6738d17c339858cbbf76f1;hb=bd321bcc51e95f644ac5335abe673afcbcaade62;hp=57e25a34bcd7cfc8aa0f2694286c5e9cb3b145ae;hpb=40a10462498bdd23d4e49f02867b8be50eb78704;p=git.git diff --git a/connect.c b/connect.c index 57e25a34..b171c5db 100644 --- a/connect.c +++ b/connect.c @@ -59,11 +59,8 @@ 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 (strstr(line+45, "continue")) - return 2; + if (!get_sha1_hex(line+4, result_sha1)) return 1; - } } die("git-fetch_pack: expected ACK/NAK, got '%s'", line); }