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:
Elijah Newren 2009-02-19 13:40:22 -07:00
parent a594ea530a
commit 358e9826d4

View File

@ -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)