Browse Source

Merge branch 'rj/prune-packed-excess-args'

"git prune-packed" did not notice and complain against excess
arguments given from the command line, which now it does.

* rj/prune-packed-excess-args:
  prune-packed: check for too many arguments
maint
Junio C Hamano 6 years ago
parent
commit
ebf846c008
  1. 5
      builtin/prune-packed.c

5
builtin/prune-packed.c

@ -63,6 +63,11 @@ int cmd_prune_packed(int argc, const char **argv, const char *prefix) @@ -63,6 +63,11 @@ int cmd_prune_packed(int argc, const char **argv, const char *prefix)
argc = parse_options(argc, argv, prefix, prune_packed_options,
prune_packed_usage, 0);

if (argc > 0)
usage_msg_opt(_("too many arguments"),
prune_packed_usage,
prune_packed_options);

prune_packed_objects(opts);
return 0;
}

Loading…
Cancel
Save