fix count of commits
This commit is contained in:
parent
47f5c35e84
commit
c6edfa9251
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue