diff options
-rw-r--r-- | datever.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; |