提交 9db06da4 编写于 作者: D Dmitriy Zaporozhets

Merge pull request #4176 from Andrew8xx8/patch-2

500 error on showing not existed commit fixed
......@@ -11,7 +11,11 @@ class CommitController < ProjectResourceController
result = CommitLoadContext.new(project, current_user, params).execute
@commit = result[:commit]
git_not_found! unless @commit
if @commit.nil?
git_not_found!
return
end
@suppress_diff = result[:suppress_diff]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册