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:
parent
14d9877838
commit
75e196875b
@ -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 = ''
|
||||
|
Loading…
Reference in New Issue
Block a user