[PATCH 31/32] send-pack: do not use thin pack in narrow mode
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
---
builtin/send-pack.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/builtin/send-pack.c b/builtin/send-pack.c
index 481602d..c2138df 100644
--- a/builtin/send-pack.c
+++ b/builtin/send-pack.c
@@ -457,6 +457,10 @@ int cmd_send_pack(int argc, const char **argv, const char *prefix)
}
if (!dest)
usage(send_pack_usage);
+
+ if (get_narrow_prefix())
+ args.use_thin_pack = 0;
+
/*
* --all and --mirror are incompatible; neither makes sense
* with any refspecs.
--
1.7.1.rc1.69.g24c2f7