~edwargix/git.sr.ht

faad89178f03e35d3f47564cbff020d61d0f0c97 — Ivan Habunek 7 years ago 500a826
Show only local branches on refs page

This would cause an exception if the repo had remote branches.
1 files changed, 1 insertions(+), 1 deletions(-)

M gitsrht/blueprints/repo.py
M gitsrht/blueprints/repo.py => gitsrht/blueprints/repo.py +1 -1
@@ 389,7 389,7 @@ def refs(owner, repo):
                branch,
                git_repo.branches[branch],
                git_repo.get(git_repo.branches[branch].target)
            ) for branch in git_repo.branches]
            ) for branch in git_repo.branches.local]
        branches = sorted(branches, key=lambda b: b[2].commit_time, reverse=True)

        results_per_page = 10