mirror of
https://github.com/openSUSE/osc.git
synced 2024-11-10 06:46:15 +01:00
avoid first line empty for commit message
This commit is contained in:
parent
651d66afab
commit
14d9877838
@ -5978,6 +5978,8 @@ 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] == '':
|
||||
del lines[0]
|
||||
template = '\n'.join(lines)
|
||||
msg = ''
|
||||
# if footer is empty, there is nothing to commit, and no edit needed.
|
||||
|
Loading…
Reference in New Issue
Block a user