From c0b1f733052c46f0ce08b716be8333d6432fc367 Mon Sep 17 00:00:00 2001 From: Markus Lehtonen Date: Tue, 8 Dec 2015 19:42:52 +0200 Subject: [PATCH] manage.py: suppress diff of git-show with '-s' Instead of '--no-patch' which is not available in older git versions. Signed-off-by: Markus Lehtonen --- manage.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/manage.py b/manage.py index b061108..c89b4e8 100755 --- a/manage.py +++ b/manage.py @@ -444,8 +444,8 @@ def export_repo(repodir, datadir): True) series = defaultdict(int) for sha1 in revisions: - fn_base = git_cmd('show', ['--format=format:%f', '--no-patch', - sha1], True)[0][:54] + fn_base = git_cmd('show', ['--format=format:%f', '-s', sha1], + True)[0][:54] # In case of overlapping filenames, add a numerical suffix series[fn_base] += 1 if series[fn_base] > 1: -- 2.34.1