git.99rst.org
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
268fbcd
)
prune-packed: check for too many arguments
author
Ramsay Jones
<redacted>
Mon, 11 Feb 2019 17:23:40 +0000
(17:23 +0000)
committer
Junio C Hamano
<redacted>
Mon, 11 Feb 2019 21:11:20 +0000
(13:11 -0800)
Signed-off-by: Ramsay Jones <redacted>
Signed-off-by: Junio C Hamano <redacted>
builtin/prune-packed.c
patch
|
blob
|
history
diff --git
a/builtin/prune-packed.c
b/builtin/prune-packed.c
index 4ff525e50fc701392e7ed276ae4bba4a82ddf8a1..b22b1a0539de206f6f2328fc0f7e1e7190b63ff1 100644
(file)
--- a/
builtin/prune-packed.c
+++ b/
builtin/prune-packed.c
@@
-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;
}
git clone https://git.99rst.org/PROJECT