fix count of commits

This commit is contained in:
Frédéric Péters 2016-03-13 15:48:17 +01:00
parent 47f5c35e84
commit c6edfa9251
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ def changelog_from_git(project, version_suffix, path,
last_tag = repo.git.describe(abbrev=0)
except GitCommandError:
# no tag version is 0.0.<number of commits>
versions.append(('0.0.%d' % len(repo.head.commit.count()), repo.head.commit))
versions.append(('0.0.%d' % repo.head.commit.count(), repo.head.commit))
else:
if get_commit_from_tag(repo, last_tag) != repo.head.commit:
versions.append((repo.git.describe(), repo.head.commit))