From: Markus Lehtonen Date: Tue, 8 Dec 2015 17:42:52 +0000 (+0200) Subject: manage.py: suppress diff of git-show with '-s' X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c0b1f733052c46f0ce08b716be8333d6432fc367;p=tools%2Fgit-buildpackage-rpm-testdata.git 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 --- 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: