]> git.scripts.mit.edu Git - git.git/commitdiff
repack: fix typo in max-pack-size option
authorJeff King <peff@peff.net>
Thu, 23 Jan 2014 01:27:52 +0000 (20:27 -0500)
committerJunio C Hamano <gitster@pobox.com>
Thu, 23 Jan 2014 18:34:49 +0000 (10:34 -0800)
When we see "--max-pack-size", we accidentally propagated
this to pack-objects as "--max_pack_size", which does not
work at all.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/repack.c

index a0ff5c704f4e21c5021091aa7335e00959993470..512a53afd854961a5af23b5e696990992419def4 100644 (file)
@@ -191,7 +191,7 @@ int cmd_repack(int argc, const char **argv, const char *prefix)
        if (depth)
                argv_array_pushf(&cmd_args, "--depth=%u", depth);
        if (max_pack_size)
-               argv_array_pushf(&cmd_args, "--max_pack_size=%u", max_pack_size);
+               argv_array_pushf(&cmd_args, "--max-pack-size=%u", max_pack_size);
        if (no_reuse_delta)
                argv_array_pushf(&cmd_args, "--no-reuse-delta");
        if (no_reuse_object)