diff options
author | Junio C Hamano <gitster@pobox.com> | 2023-12-21 19:13:58 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2023-12-21 19:33:09 +0100 |
commit | d6b6cd139359097f565023f9481c9943989e4463 (patch) | |
tree | 0aca802897fa6d106fcab1caeff76a6437bd0bdf /archive.c | |
parent | Git 2.43 (diff) | |
download | git-d6b6cd139359097f565023f9481c9943989e4463.tar.xz git-d6b6cd139359097f565023f9481c9943989e4463.zip |
archive: "--list" does not take further options
"git archive --list blah" should notice an extra command line
parameter that goes unused. Make it so.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'archive.c')
-rw-r--r-- | archive.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -685,6 +685,8 @@ static int parse_archive_args(int argc, const char **argv, base = ""; if (list) { + if (argc) + die(_("extra command line parameter '%s'"), *argv); for (i = 0; i < nr_archivers; i++) if (!is_remote || archivers[i]->flags & ARCHIVER_REMOTE) printf("%s\n", archivers[i]->name); |