~edwargix/git.sr.ht

7dfff7e17dbb1451892a93e88acf1a225405371e — Drew DeVault 4 years ago 66c398d
log: abort(404) if git commit is not found
1 files changed, 2 insertions(+), 0 deletions(-)

M gitsrht/blueprints/repo.py
M gitsrht/blueprints/repo.py => gitsrht/blueprints/repo.py +2 -0
@@ 403,6 403,8 @@ def log(owner, repo, ref, path):
                commit = git_repo.get(from_id)
            except ValueError:
                abort(404)
        if not commit:
            abort(404)

        commits = get_log(git_repo, commit, path)