Skip to content

Commit 8b2f86a

Browse files
felipecgitster
authored andcommitted
fast-export: improve argument parsing
We don't want to pass arguments specific to fast-export to setup_revisions. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent cc29195 commit 8b2f86a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

builtin/fast-export.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -701,8 +701,9 @@ int cmd_fast_export(int argc, const char **argv, const char *prefix)
701701
revs.topo_order = 1;
702702
revs.show_source = 1;
703703
revs.rewrite_parents = 1;
704+
argc = parse_options(argc, argv, prefix, options, fast_export_usage,
705+
PARSE_OPT_KEEP_ARGV0 | PARSE_OPT_KEEP_UNKNOWN);
704706
argc = setup_revisions(argc, argv, &revs, NULL);
705-
argc = parse_options(argc, argv, prefix, options, fast_export_usage, 0);
706707
if (argc > 1)
707708
usage_with_options (fast_export_usage, options);
708709

0 commit comments

Comments
 (0)