diff options
author | Drew DeVault <sir@cmpwn.com> | 2019-06-10 10:41:54 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2019-06-10 10:41:54 -0400 |
commit | 0d0b80fbed529491c5fe44d0ffa582ea20868858 (patch) | |
tree | 1f7186f25d9a766679c903903b0aba1736456c27 /gitsrht/blueprints/repo.py | |
parent | 4c07823f47065d393bf5dfd1d5838d6ddd079051 (diff) |
Fix a few bugs found with test-git-web-interface
Diffstat (limited to 'gitsrht/blueprints/repo.py')
-rw-r--r-- | gitsrht/blueprints/repo.py | 2 |
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", |