mirror of
https://github.com/git/git.git
synced 2025-01-25 00:43:41 +08:00
prune-packed: check for too many arguments
Signed-off-by: Ramsay Jones <ramsay@ramsayjones.plus.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
268fbcd172
commit
9b0bd87ed2
@ -62,6 +62,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…
Reference in New Issue
Block a user