summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2019-06-10 10:48:21 -0400
committerDrew DeVault <sir@cmpwn.com>2019-06-10 10:48:21 -0400
commit642d625706115d1e12823aa782885ed3d365d631 (patch)
treea396dc8e318c148396004f58e274c555bba72c1f
parent0d0b80fbed529491c5fe44d0ffa582ea20868858 (diff)
Fix AnnotatedRef for blob 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 8bfd374..6d29d26 100644
--- a/gitsrht/blueprints/repo.py
+++ b/gitsrht/blueprints/repo.py
@@ -252,7 +252,7 @@ class _AnnotatedRef:
self.tag = repo.get(self.target)
if isinstance(self.tag, pygit2.Commit):
self.commit = self.tag
- else:
+ elif isinstance(self.tag, pygit2.Tag):
self.commit = repo.get(self.tag.target)
else:
self.type = None