~edwargix/git.sr.ht

e72ba82dcc5d8bed3b9aaa1a98565fa6ba0653d2 — Drew DeVault 4 years ago 5f2f03e
Fix typo with previous patch
1 files changed, 1 insertions(+), 1 deletions(-)

M gitsrht/blueprints/repo.py
M gitsrht/blueprints/repo.py => gitsrht/blueprints/repo.py +1 -1
@@ 57,7 57,7 @@ def get_readme(repo, git_repo, tip, link_prefix=None):
def _highlight_file(repo, ref, entry, data, blob_id, commit_id):
    link_prefix = url_for('repo.tree', owner=repo.owner,
            repo=repo.name, ref=ref)
    if blob.filemode == pygit2.GIT_FILEMODE_LINK:
    if entry.filemode == pygit2.GIT_FILEMODE_LINK:
        return Markup("<div class=\"highlight\"><pre>" +
                f"<a href=\"{url_quote(data.encode('utf-8'))}\">" +
                f"{escape(data)}</a><pre></div>")