don't require two newlines after commits

(this prevented first commit after tag to be accounted in difflog)
This commit is contained in:
Frédéric Péters 2022-10-10 15:16:00 +02:00
parent e2ed1b3322
commit 3c92be726a
1 changed files with 1 additions and 1 deletions

View File

@ -74,7 +74,7 @@ class CommitAndIssues:
@classmethod
def get_for_commits(cls, module, v1, v2):
difflog = module.get_diff_log(v1, v2, format='full', grep=r'\#[0-9]\+')
commits = re.findall(r'^commit.*?\n\n.*?\n\n', difflog, re.DOTALL | re.MULTILINE)
commits = re.findall(r'^commit.*?\n\n.*?\n', difflog, re.DOTALL | re.MULTILINE)
oneline_commits = module.get_diff_log(v1, v2, grep=r'\#[0-9]\+').splitlines()
objects = []