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>maint
parent
d50c387163
commit
74991a98df
|
@ -818,6 +818,12 @@ static struct ref *do_fetch_pack(int fd[2],
|
||||||
fprintf(stderr, "Server supports side-band\n");
|
fprintf(stderr, "Server supports side-band\n");
|
||||||
use_sideband = 1;
|
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 (server_supports("ofs-delta")) {
|
||||||
if (args.verbose)
|
if (args.verbose)
|
||||||
fprintf(stderr, "Server supports ofs-delta\n");
|
fprintf(stderr, "Server supports ofs-delta\n");
|
||||||
|
|
Loading…
Reference in New Issue