From: Martin Liska Date: Wed, 29 Jul 2020 12:13:42 +0000 (+0200) Subject: gcc-changelog: fix combining of arguments. X-Git-Tag: basepoints/gcc-12~5853 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5175857714cc37b01c4349f37253aea39c6a59b4;p=thirdparty%2Fgcc.git gcc-changelog: fix combining of arguments. contrib/ChangeLog: 2020-07-29 Martin Liska * git-backport.py: fix how are ChangeLog paths combined. --- diff --git a/contrib/git-backport.py b/contrib/git-backport.py index 3a9413dcd274..2b8e4686719f 100755 --- a/contrib/git-backport.py +++ b/contrib/git-backport.py @@ -46,7 +46,7 @@ if __name__ == '__main__': conflicts = out.strip().split('\n') changelogs = [c for c in conflicts if c.endswith('ChangeLog')] if changelogs: - cmd = 'git checkout --theirs %s' % '\n'.join(changelogs) + cmd = 'git checkout --theirs %s' % ' '.join(changelogs) subprocess.check_output(cmd, shell=True) # 2) remove all ChangeLog files from index cmd = 'git diff --name-only --diff-filter=M HEAD'