OSDN Git Service
(root)
/
wvm
/
gitlab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d1a5e37
)
Fix: API 500 error when project does not exists
author
tsl0922
<tsl0922@gmail.com>
Thu, 14 Mar 2013 07:02:36 +0000
(15:02 +0800)
committer
tsl0922
<tsl0922@gmail.com>
Thu, 14 Mar 2013 07:02:36 +0000
(15:02 +0800)
lib/api/internal.rb
patch
|
blob
|
history
diff --git
a/lib/api/internal.rb
b/lib/api/internal.rb
index
22ac49c
..
e38cd69
100644
(file)
--- a/
lib/api/internal.rb
+++ b/
lib/api/internal.rb
@@
-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'