From e72ba82dcc5d8bed3b9aaa1a98565fa6ba0653d2 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Thu, 24 Sep 2020 10:10:20 -0400 Subject: [PATCH] Fix typo with previous patch --- gitsrht/blueprints/repo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitsrht/blueprints/repo.py b/gitsrht/blueprints/repo.py index a5e180d..c0a9764 100644 --- a/gitsrht/blueprints/repo.py +++ b/gitsrht/blueprints/repo.py @@ -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("
" +
                 f"" +
                 f"{escape(data)}
") -- 2.38.4