Fix syntax error in stg status
authorPaolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Sun, 18 Sep 2005 18:15:51 +0000 (20:15 +0200)
committerCatalin Marinas <catalin.marinas@gmail.com>
Mon, 19 Sep 2005 10:19:01 +0000 (11:19 +0100)
From: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>

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 <blaisorblade@yahoo.it>
stgit/git.py

index 9ad6f0d..ea80be6 100644 (file)
@@ -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: