From: Nguyễn Thái Ngọc Duy Date: Fri, 05 Feb 2016 08:57:56 GMT Subject: [PATCH 7/8] index-pack: --append-pack implies --strict Message-ID: <1454662677-15137-8-git-send-email-pclouds@gmail.com> In-Reply-To: <1454662677-15137-1-git-send-email-pclouds@gmail.com> A frankenstein pack, generated by multiple pack-objects runs, certainly has higher risk of broken, especially when the server side could be some other implementation than pack-objects. Be safe and strict. Signed-off-by: Nguyễn Thái Ngọc Duy --- builtin/index-pack.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/builtin/index-pack.c b/builtin/index-pack.c index f099ac2..cc60aee 100644 --- a/builtin/index-pack.c +++ b/builtin/index-pack.c @@ -1736,6 +1736,8 @@ int cmd_index_pack(int argc, const char **argv, const char *prefix) if (*c || opts.off32_limit & 0x80000000) die(_("bad %s"), arg); } else if (skip_prefix(arg, "--append-pack=", &arg)) { + strict = 1; + do_fsck_object = 1; curr_pack = open_pack_for_append(arg); } else usage(index_pack_usage); -- 2.7.0.377.g4cd97dd