Skip to content

Commit 74991a9

Browse files
committed
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 <[email protected]>
1 parent d50c387 commit 74991a9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

builtin/fetch-pack.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -818,6 +818,12 @@ static struct ref *do_fetch_pack(int fd[2],
818818
fprintf(stderr, "Server supports side-band\n");
819819
use_sideband = 1;
820820
}
821+
if (!server_supports("thin-pack"))
822+
args.use_thin_pack = 0;
823+
if (!server_supports("no-progress"))
824+
args.no_progress = 0;
825+
if (!server_supports("include-tag"))
826+
args.include_tag = 0;
821827
if (server_supports("ofs-delta")) {
822828
if (args.verbose)
823829
fprintf(stderr, "Server supports ofs-delta\n");

0 commit comments

Comments
 (0)