gcc-changelog: fix combining of arguments.
authorMartin Liska <mliska@suse.cz>
Wed, 29 Jul 2020 12:13:42 +0000 (14:13 +0200)
committerMartin Liska <mliska@suse.cz>
Wed, 29 Jul 2020 12:17:43 +0000 (14:17 +0200)
contrib/ChangeLog:

2020-07-29  Martin Liska  <mliska@suse.cz>

* git-backport.py: fix how are ChangeLog paths combined.

contrib/git-backport.py

index 3a9413dcd274637dd42e74587fdca8d64a4bb8d8..2b8e4686719fe67f9b7e1d883d5c0e6cb902c08f 100755 (executable)
@@ -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'