summaryrefslogtreecommitdiffstats
path: root/gitsrht/blueprints/repo.py
diff options
context:
space:
mode:
Diffstat (limited to 'gitsrht/blueprints/repo.py')
-rw-r--r--gitsrht/blueprints/repo.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/gitsrht/blueprints/repo.py b/gitsrht/blueprints/repo.py
index 028c8d6..8bfd374 100644
--- a/gitsrht/blueprints/repo.py
+++ b/gitsrht/blueprints/repo.py
@@ -83,6 +83,8 @@ def summary(owner, repo):
tags = [(ref, git_repo.get(git_repo.references[ref].target))
for ref in git_repo.listall_references()
if ref.startswith("refs/tags/")]
+ tags = [tag for tag in tags
+ if isinstance(tag[1], pygit2.Tag) or isinstance(tag[1], pygit2.Commit)]
tags = sorted(tags, key=lambda c: commit_time(c[1]), reverse=True)
latest_tag = tags[0] if len(tags) else None
return render_template("summary.html", view="summary",