diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-04-18 03:25:03 -0700 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-04-18 03:25:03 -0700 |
commit | e79ab4bdb92cc645d399a9150f4c7e3b9a5e2e46 (patch) | |
tree | ccbaf042d18b57eb4f0181470b4f0004ac1e420b /lib/api/internal.rb | |
parent | 61d979156c92f3670bc56c9c36fde8b2445ec16a (diff) | |
parent | 1e11e45fa372f093352774a3fa1725ff143ed746 (diff) | |
download | gitlab-ce-e79ab4bdb92cc645d399a9150f4c7e3b9a5e2e46.tar.gz |
Merge pull request #3209 from tsl0922/master
Fix: API 500 error when project does not exists
Diffstat (limited to 'lib/api/internal.rb')
-rw-r--r-- | lib/api/internal.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/api/internal.rb b/lib/api/internal.rb index 81451638090..295724c77c1 100644 --- a/lib/api/internal.rb +++ b/lib/api/internal.rb @@ -22,6 +22,7 @@ module Gitlab key = Key.find(params[:key_id]) project = Project.find_with_namespace(project_path) git_cmd = params[:action] + return false unless project if key.is_deploy_key |