~edwargix/git.sr.ht

04611e5bb74db52fb0f201ad9f65231412cca328 — Drew DeVault 7 years ago 4b93574
Fix StopIteration in tree view
1 files changed, 2 insertions(+), 1 deletions(-)

M gitsrht/blueprints/repo.py
M gitsrht/blueprints/repo.py => gitsrht/blueprints/repo.py +2 -1
@@ 150,7 150,8 @@ def tree(owner, repo, ref, path):
            entry = tree[part]
            if entry.type == "blob":
                tree = annotate_tree(git_repo, tree, commit)
                commit = next(e.commit for e in tree if e.name == entry.name)
                commit = next((e.commit for e in tree if e.name == entry.name),
                        default=None)
                blob = git_repo.get(entry.id)
                data = None
                if not blob.is_binary: