From 1ba98a79f1b991e6f2b1d01ac392ba2edadc3ca1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Mart=C3=ADn=20Nieto?= Date: Sat, 23 Nov 2013 17:07:55 +0100 Subject: send-pack: don't send a thin pack to a server which doesn't support it MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Up to now git has assumed that all servers are able to fix thin packs. This is however not always the case. Document the 'no-thin' capability and prevent send-pack from generating a thin pack if the server advertises it. Signed-off-by: Carlos Martín Nieto Helped-by: Jeff King Signed-off-by: Junio C Hamano --- send-pack.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'send-pack.c') diff --git a/send-pack.c b/send-pack.c index fab62e3da0..9ee8cf50a8 100644 --- a/send-pack.c +++ b/send-pack.c @@ -206,6 +206,8 @@ int send_pack(struct send_pack_args *args, quiet_supported = 1; if (server_supports("agent")) agent_supported = 1; + if (server_supports("no-thin")) + args->use_thin_pack = 0; if (!remote_refs) { fprintf(stderr, "No refs in common and none specified; doing nothing.\n" -- cgit v1.2.1