Previously, git refs listed in reverse chronological order based on
tag-time.
Now, list in reverse chronological order based on commit-time of the
referenced commit.
Intended to address: https://todo.sr.ht/~sircmpwn/git.sr.ht/322
diff --git a/gitsrht/blueprints/repo.py b/gitsrht/blueprints/repo.py
--- a/gitsrht/blueprints/repo.py+++ b/gitsrht/blueprints/repo.py
@@ -505,7 +505,7 @@
def _tag_key(tag):
if isinstance(tag[1], pygit2.Commit):
return tag[1].commit_time
- return tag[1].tagger.time+ return tag[1].get_object().commit_time tags = sorted(tags, key=_tag_key, reverse=True)
branches = [(
branch,