mirror of
https://github.com/newren/git-filter-repo.git
synced 2024-07-06 02:12:17 +02:00
filter-repo: work around git-fast-export bug
Explicitly specify --topo-order; git-fast-export fails on some topologies unless it traverses in topological order. Signed-off-by: Elijah Newren <newren@gmail.com>
This commit is contained in:
parent
bf5e92d02a
commit
2c769de150
@ -322,7 +322,7 @@ class FastExportFilter(object):
|
||||
raise SystemExit("Could not parse line: '%s'" % self.nextline)
|
||||
|
||||
def FastExportOutput(source_repo, extra_args = []):
|
||||
return Popen(["git", "fast-export", "--all"] + extra_args,
|
||||
return Popen(["git", "fast-export", "--all", "--topo-order"] + extra_args,
|
||||
stdout = PIPE,
|
||||
cwd = source_repo).stdout
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user