mirror of
https://github.com/newren/git-filter-repo.git
synced 2024-07-06 18:32:14 +02:00
filter-repo: better handling of passing --all to fast-export
Make --all be a default argument for fast-export, not a mandatory argument. Signed-off-by: Elijah Newren <newren@gmail.com>
This commit is contained in:
parent
a594ea530a
commit
358e9826d4
@ -393,7 +393,9 @@ class FastExportFilter(object):
|
||||
raise SystemExit("Could not parse line: '%s'" % self.nextline)
|
||||
|
||||
def FastExportOutput(source_repo, extra_args = []):
|
||||
return Popen(["git", "fast-export", "--all", "--topo-order"] + extra_args,
|
||||
if not extra_args:
|
||||
extra_args = ["--all"]
|
||||
return Popen(["git", "fast-export", "--topo-order"] + extra_args,
|
||||
stdout = PIPE,
|
||||
cwd = source_repo)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user