Skip to content
Snippets Groups Projects
Commit 1e11e45f authored by tsl0922's avatar tsl0922
Browse files

Fix: API 500 error when project does not exists

parent d1a5e370
No related branches found
No related tags found
1 merge request!3209Fix: API 500 error when project does not exists
Loading
Loading
@@ -15,6 +15,7 @@ module Gitlab
key = Key.find(params[:key_id])
project = Project.find_with_namespace(params[:project])
git_cmd = params[:action]
return false unless project
 
if key.is_deploy_key
project == key.project && git_cmd == 'git-upload-pack'
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment