diff options
| author | Junio C Hamano <gitster@pobox.com> | 2024-01-08 14:05:14 -0800 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2024-01-08 14:05:14 -0800 |
| commit | 6bf317df4b64309c51d6a327a3111dab491d7656 (patch) | |
| tree | 6a20a1448a6e8a39f7378b9b559e63f3d0581377 /archive.c | |
| parent | The fifth batch (diff) | |
| parent | archive: "--list" does not take further options (diff) | |
| download | git-6bf317df4b64309c51d6a327a3111dab491d7656.tar.gz git-6bf317df4b64309c51d6a327a3111dab491d7656.zip | |
Merge branch 'jc/archive-list-with-extra-args'
"git archive --list extra garbage" silently ignored excess command
line parameters, which has been corrected.
* jc/archive-list-with-extra-args:
archive: "--list" does not take further options
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); |
