summaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorFelipe Contreras <felipe.contreras@gmail.com>2014-04-20 18:59:23 (GMT)
committerJunio C Hamano <gitster@pobox.com>2014-04-21 18:47:33 (GMT)
commit8b2f86a76146ebbd4ac4f9c2182b3f7bda4492ff (patch)
tree529cdb8e7766664a0b4f94266f3ec3090f0bba83 /builtin
parentcc291953df19aa4a97bee3590e708dc1fc557500 (diff)
downloadgit-8b2f86a76146ebbd4ac4f9c2182b3f7bda4492ff.zip
git-8b2f86a76146ebbd4ac4f9c2182b3f7bda4492ff.tar.gz
git-8b2f86a76146ebbd4ac4f9c2182b3f7bda4492ff.tar.bz2
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>
Diffstat (limited to 'builtin')
-rw-r--r--builtin/fast-export.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/builtin/fast-export.c b/builtin/fast-export.c
index b8d8a3a..bc3490c 100644
--- a/builtin/fast-export.c
+++ b/builtin/fast-export.c
@@ -701,8 +701,9 @@ int cmd_fast_export(int argc, const char **argv, const char *prefix)
revs.topo_order = 1;
revs.show_source = 1;
revs.rewrite_parents = 1;
+ argc = parse_options(argc, argv, prefix, options, fast_export_usage,
+ PARSE_OPT_KEEP_ARGV0 | PARSE_OPT_KEEP_UNKNOWN);
argc = setup_revisions(argc, argv, &revs, NULL);
- argc = parse_options(argc, argv, prefix, options, fast_export_usage, 0);
if (argc > 1)
usage_with_options (fast_export_usage, options);