Skip to content

Commit 3216413

Browse files
newrengitster
authored andcommitted
fast-export: Do parent rewriting to avoid dropping relevant commits
When specifying paths to export, parent rewriting must be turned on for fast-export to output anything at all. Signed-off-by: Elijah Newren <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 2374502 commit 3216413

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

builtin-fast-export.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -531,6 +531,7 @@ int cmd_fast_export(int argc, const char **argv, const char *prefix)
531531
init_revisions(&revs, prefix);
532532
revs.topo_order = 1;
533533
revs.show_source = 1;
534+
revs.rewrite_parents = 1;
534535
argc = setup_revisions(argc, argv, &revs, NULL);
535536
argc = parse_options(argc, argv, prefix, options, fast_export_usage, 0);
536537
if (argc > 1)

0 commit comments

Comments
 (0)