From: Paolo 'Blaisorblade' Giarrusso Date: Sun, 18 Sep 2005 18:15:51 +0000 (+0200) Subject: Fix syntax error in stg status X-Git-Tag: v0.14.3~662 X-Git-Url: https://git.distorted.org.uk/~mdw/stgit/commitdiff_plain/3c6fbd2cb3fd1d2a18585d3c13cd4517021b2f36 Fix syntax error in stg status From: Paolo 'Blaisorblade' Giarrusso Uff, it's becoming annoying - why things break so often? However, more to the point: turn a string into a list to allow appending it to another list. Signed-off-by: Paolo 'Blaisorblade' Giarrusso --- diff --git a/stgit/git.py b/stgit/git.py index 9ad6f0d..ea80be6 100644 --- a/stgit/git.py +++ b/stgit/git.py @@ -182,7 +182,7 @@ def __tree_status(files = [], tree_id = 'HEAD', unknown = False, base_exclude.append('--exclude-per-directory=.gitignore') if os.path.exists(exclude_file): - extra_exclude = '--exclude-from=%s' % exclude_file + extra_exclude = ['--exclude-from=%s' % exclude_file] else: extra_exclude = [] if noexclude: