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)