summaryrefslogtreecommitdiff
path: root/datever.c
diff options
context:
space:
mode:
Diffstat (limited to 'datever.c')
-rw-r--r--datever.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/datever.c b/datever.c
index 2e90be7..3e348cd 100644
--- a/datever.c
+++ b/datever.c
@@ -80,7 +80,8 @@ find_latest(git_repository* const repo)
struct datever ver = datever_init();
while (0 == git_revwalk_next(&oid, walker)) {
must("find commit", git_commit_lookup(&commit, repo, &oid));
- ver = datever_from_time(git_commit_time(commit));
+ const git_signature* author = git_commit_author(commit);
+ ver = datever_from_time(author->when.time);
if (datever_is_valid(&prev)) {
if (0 == datever_compare(&prev, &ver))
ver.revision += prev.revision;