changelog: include tip commit in list of commits
This commit is contained in:
parent
bc6745e72d
commit
91b1b64978
|
@ -37,7 +37,7 @@ def changelog_from_git(project, version_suffix, path,
|
|||
for i in range(n):
|
||||
name, commit = versions[i]
|
||||
if i == n-1:
|
||||
logs = list(commit.iter_parents())
|
||||
logs = [commit] + list(commit.iter_parents())
|
||||
else:
|
||||
reflog = '%s..%s' % (versions[i+1][1].binsha.encode('hex'), commit.binsha.encode('hex'))
|
||||
logs = list(Commit.iter_items(repo, reflog))
|
||||
|
|
Loading…
Reference in New Issue