From 358e9826d40a289760701a15dbc0c1c36c6e39ec Mon Sep 17 00:00:00 2001 From: Elijah Newren Date: Thu, 19 Feb 2009 13:40:22 -0700 Subject: [PATCH] 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 --- git-filter-repo | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/git-filter-repo b/git-filter-repo index dcc2107..4cb2e7b 100755 --- a/git-filter-repo +++ b/git-filter-repo @@ -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)