Internal API `allowed` fails from Gitlab-shell
Created by: davispuh
I just tried newest gitlab master branch with gitlab-shell and when I tried fetch or push using ssh it failed with
Started GET "/api/v3/internal/allowed?key_id=3&action=git-receive-pack&ref=_any&project=/somegroup/some-project" for 2a00:f48:1025:feed:b00b:feed:b90c:fc82 at 2013-02-10 14:26:58 +0000
NoMethodError (undefined method `protected_branch?' for nil:NilClass):
lib/api/internal.rb:22:in `block (2 levels) in <class:Internal>'
it's because in lib/api/internal.rb
Project.find_with_namespace(params[:project])
returns nil, I didn't looked further..