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>
base_exclude.append('--exclude-per-directory=.gitignore')
if os.path.exists(exclude_file):
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:
else:
extra_exclude = []
if noexclude: