~edwargix/git.sr.ht

33ca8122f975dd367d4615d449bc904f5d48b472 — Drew DeVault 4 years ago 9b541f8
Render empty repo if there's no default branch
1 files changed, 3 insertions(+), 0 deletions(-)

M gitsrht/blueprints/repo.py
M gitsrht/blueprints/repo.py => gitsrht/blueprints/repo.py +3 -0
@@ 87,6 87,9 @@ def summary(owner, repo):
            return render_empty_repo(owner, repo)

        default_branch = git_repo.default_branch()
        if not default_branch:
            return render_empty_repo(owner, repo)

        tip = git_repo.get(default_branch.target)
        commits = get_last_3_commits(git_repo, tip)
        link_prefix = url_for(