From 74991a98df79ff3702dcb3b5c22c7b9ec20cfead Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Fri, 10 Aug 2012 14:27:52 -0700 Subject: fetch-pack: do not ask for unadvertised capabilities In the same spirit as the previous fix, stop asking for thin-pack, no-progress and include-tag capabilities when the other end does not claim to support them. Signed-off-by: Junio C Hamano diff --git a/builtin/fetch-pack.c b/builtin/fetch-pack.c index bc7a0f9..fdec7f6 100644 --- a/builtin/fetch-pack.c +++ b/builtin/fetch-pack.c @@ -818,6 +818,12 @@ static struct ref *do_fetch_pack(int fd[2], fprintf(stderr, "Server supports side-band\n"); use_sideband = 1; } + if (!server_supports("thin-pack")) + args.use_thin_pack = 0; + if (!server_supports("no-progress")) + args.no_progress = 0; + if (!server_supports("include-tag")) + args.include_tag = 0; if (server_supports("ofs-delta")) { if (args.verbose) fprintf(stderr, "Server supports ofs-delta\n"); -- cgit v0.10.2-6-g49f6