Skip to content

Commit

Permalink
repack: fix typo in max-pack-size option
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jeff King authored and Junio C Hamano committed Jan 23, 2014
1 parent 35c1417 commit 44b96ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion builtin/repack.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 44b96ec

Please sign in to comment.