diff options
author | Drew DeVault <sir@cmpwn.com> | 2019-06-10 10:48:21 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2019-06-10 10:48:21 -0400 |
commit | 642d625706115d1e12823aa782885ed3d365d631 (patch) | |
tree | a396dc8e318c148396004f58e274c555bba72c1f | |
parent | 0d0b80fbed529491c5fe44d0ffa582ea20868858 (diff) |
Fix AnnotatedRef for blob tags
-rw-r--r-- | gitsrht/blueprints/repo.py | 2 |
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 |