~edwargix/git.sr.ht

70169ca2cdc0b306edf87122c00c8a737dc61507 — Drew DeVault 6 years ago 1db988a
Fix readme resolution
1 files changed, 5 insertions(+), 2 deletions(-)

M gitsrht/blueprints/repo.py
M gitsrht/blueprints/repo.py => gitsrht/blueprints/repo.py +5 -2
@@ 38,8 38,11 @@ def get_readme(repo, tip, link_prefix=None):
        except KeyError:
            return None, None

        if blob and blob.type == "blob":
            return blob.id.hex, blob
        if blob:
            btype = (blob.type_str
                    if hasattr(blob, "type_str") else blob.type)
            if btype == "blob":
                return blob.id.hex, blob
        return None, None

    def content_getter(blob):