~edwargix/git.sr.ht

7fb84024a5e3d7aceb2e228250f26759bd40d390 — Drew DeVault 5 years ago af416ed
Further generalize 404 cases on lookup_ref
1 files changed, 1 insertions(+), 1 deletions(-)

M gitsrht/blueprints/repo.py
M gitsrht/blueprints/repo.py => gitsrht/blueprints/repo.py +1 -1
@@ 179,7 179,7 @@ def lookup_ref(git_repo, ref, path):
        abort(404)
    if isinstance(commit, pygit2.Tag):
        commit = git_repo.get(commit.target)
    if not commit:
    if not commit or not isinstance(commit, pygit2.Commit):
        abort(404)
    return commit, ref, "/".join(path)