From 40a10462498bdd23d4e49f02867b8be50eb78704 Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Sun, 23 Oct 2005 03:40:13 +0200 Subject: git-fetch-pack: Implement client part of the multi_ack extension This patch concludes the series, which makes git-fetch-pack/git-upload-pack negotiate a potentially better set of common revs. It should make a difference when fetching from a repository with a few branches. Signed-off-by: Johannes Schindelin Signed-off-by: Junio C Hamano --- connect.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'connect.c') diff --git a/connect.c b/connect.c index b171c5dbc8..57e25a34bc 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); } -- cgit v1.2.3