1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-01-11 16:36:14 +01:00

fix lines = None

This commit is contained in:
Ludwig Nussel 2011-06-01 09:12:10 +02:00
parent 14d9877838
commit 75e196875b

View File

@ -5978,7 +5978,7 @@ def get_commit_msg(wc_dir, pacs):
footer.extend([''.join(i) for i in p.get_diff(ignoreUnversioned=True)])
lines.extend(get_commit_message_template(p))
if template is None:
if lines[0] == '':
if lines and lines[0] == '':
del lines[0]
template = '\n'.join(lines)
msg = ''