aboutsummaryrefslogtreecommitdiff
path: root/builtin/fetch-pack.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2012-08-10 14:27:52 -0700
committerJunio C Hamano <gitster@pobox.com>2012-08-10 14:27:52 -0700
commit74991a98df79ff3702dcb3b5c22c7b9ec20cfead (patch)
tree67245f988e98d6beb61b9f8d56adbe0a27edee0e /builtin/fetch-pack.c
parentd50c3871632451b0cac066eea178198ac8a9dff1 (diff)
downloadgit-74991a98df79ff3702dcb3b5c22c7b9ec20cfead.tar.gz
git-74991a98df79ff3702dcb3b5c22c7b9ec20cfead.tar.xz
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 <gitster@pobox.com>
Diffstat (limited to 'builtin/fetch-pack.c')
-rw-r--r--builtin/fetch-pack.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/builtin/fetch-pack.c b/builtin/fetch-pack.c
index bc7a0f9e7..fdec7f61c 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");