summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Dauvergne <bdauvergne@entrouvert.com>2016-02-15 23:09:31 (GMT)
committerBenjamin Dauvergne <bdauvergne@entrouvert.com>2016-02-15 23:09:31 (GMT)
commit28216ddd4a5fdcd08afeb26356e5c91d78a6278e (patch)
tree97ee8225a57be15e0519afa66496aeaaea4bfbda
parent8f491a8e3420778c8d5dd5892ce59603feb63320 (diff)
downloadeobuilder-28216ddd4a5fdcd08afeb26356e5c91d78a6278e.zip
eobuilder-28216ddd4a5fdcd08afeb26356e5c91d78a6278e.tar.gz
eobuilder-28216ddd4a5fdcd08afeb26356e5c91d78a6278e.tar.bz2
changelog: fix version number computation when there is not tag
-rw-r--r--eobuilder/changelog.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/eobuilder/changelog.py b/eobuilder/changelog.py
index cc5d8b1..7806bb8 100644
--- a/eobuilder/changelog.py
+++ b/eobuilder/changelog.py
@@ -28,7 +28,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.log()), repo.head.commit))
+ versions.append(('0.0.%d' % len(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))