summaryrefslogtreecommitdiff
path: root/send-pack.c
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2013-12-12 14:20:32 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2013-12-12 14:20:32 -0800
commit72911f8c18d06f2ad340061f9a76556b21acf822 (patch)
treee53c2daba841ab455270f92563986603d3f63e66 /send-pack.c
parentMerge branch 'jk/remove-deprecated' (diff)
parentsend-pack: don't send a thin pack to a server which doesn't support it (diff)
downloadtgif-72911f8c18d06f2ad340061f9a76556b21acf822.tar.xz
Merge branch 'cn/thin-push-capability'
Allow receive-pack to insist on receiving a fat pack from "git push" clients. * cn/thin-push-capability: send-pack: don't send a thin pack to a server which doesn't support it
Diffstat (limited to 'send-pack.c')
-rw-r--r--send-pack.c2
1 files changed, 2 insertions, 0 deletions
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"