diff options
author | Elijah Newren <newren@gmail.com> | 2009-06-25 22:48:27 -0600 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-06-27 14:10:09 -0700 |
commit | 668f3aa776bcd293de08413bf1b25b91c15f1b01 (patch) | |
tree | 19be18f96fb1a6f1fe6138eeaecfdb57b4eda193 /builtin-fast-export.c | |
parent | 916e1373fb86db9d7019de4e7e74e39c9474a153 (diff) | |
download | git-668f3aa776bcd293de08413bf1b25b91c15f1b01.tar.gz |
fast-export: Set revs.topo_order before calling setup_revisions
setup_revisions sets a variety of flags based on the setting of other
flags, such as setting the limited flag when topo_order is set. To avoid
circumventing any invariants created by setup_revisions, we set
revs.topo_order before calling it rather than after.
Signed-off-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin-fast-export.c')
-rw-r--r-- | builtin-fast-export.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin-fast-export.c b/builtin-fast-export.c index 6cef810312..e0cfa606dc 100644 --- a/builtin-fast-export.c +++ b/builtin-fast-export.c @@ -514,6 +514,7 @@ int cmd_fast_export(int argc, const char **argv, const char *prefix) git_config(git_default_config, NULL); init_revisions(&revs, prefix); + revs.topo_order = 1; argc = setup_revisions(argc, argv, &revs, NULL); argc = parse_options(argc, argv, prefix, options, fast_export_usage, 0); if (argc > 1) @@ -524,7 +525,6 @@ int cmd_fast_export(int argc, const char **argv, const char *prefix) get_tags_and_duplicates(&revs.pending, &extra_refs); - revs.topo_order = 1; if (prepare_revision_walk(&revs)) die("revision walk setup failed"); revs.diffopt.format_callback = show_filemodify; |