changelog: include tip commit in list of commits

This commit is contained in:
Benjamin Dauvergne 2015-11-26 11:54:09 +01:00
parent bc6745e72d
commit 91b1b64978
1 changed files with 1 additions and 1 deletions

View File

@ -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))