Merge pull request #3209 from tsl0922/master
Fix: API 500 error when project does not exists
This commit is contained in:
commit
e79ab4bdb9
1 changed files with 1 additions and 0 deletions
|
@ -22,6 +22,7 @@ module Gitlab
|
||||||
key = Key.find(params[:key_id])
|
key = Key.find(params[:key_id])
|
||||||
project = Project.find_with_namespace(project_path)
|
project = Project.find_with_namespace(project_path)
|
||||||
git_cmd = params[:action]
|
git_cmd = params[:action]
|
||||||
|
return false unless project
|
||||||
|
|
||||||
|
|
||||||
if key.is_deploy_key
|
if key.is_deploy_key
|
||||||
|
|
Loading…
Reference in a new issue