summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2019-06-10 10:52:29 -0400
committerDrew DeVault <sir@cmpwn.com>2019-06-10 10:52:29 -0400
commit32c50c52d0e7a5eb14cfc23a64a7a24926df7445 (patch)
treeb3099ff7bdc4890f60ff78de037b372bd17caef2
parent642d625706115d1e12823aa782885ed3d365d631 (diff)
Skip these bloody broken tags
-rw-r--r--gitsrht/blueprints/repo.py2
1 files changed, 1 insertions, 1 deletions
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] = []