From 32c50c52d0e7a5eb14cfc23a64a7a24926df7445 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Mon, 10 Jun 2019 10:52:29 -0400 Subject: Skip these bloody broken tags --- gitsrht/blueprints/repo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitsrht/blueprints/repo.py b/gitsrht/blueprints/repo.py index 6d29d26..1b528aa 100644 --- a/gitsrht/blueprints/repo.py +++ b/gitsrht/blueprints/repo.py @@ -261,7 +261,7 @@ def collect_refs(git_repo): refs = {} for _ref in git_repo.references: _ref = _AnnotatedRef(git_repo, git_repo.references[_ref]) - if not _ref.type: + if not _ref.type or not _ref.commit: continue if _ref.commit.id.hex not in refs: refs[_ref.commit.id.hex] = [] -- cgit v1.2.3