Merge pull request #3209 from tsl0922/master

Fix: API 500 error when project does not exists
This commit is contained in:
Dmitriy Zaporozhets 2013-04-18 03:25:03 -07:00
commit e79ab4bdb9

View file

@ -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