Merge branch 'split-with-2' into 'master'

Make sure we get only two returns

@DouweM The other change I made which has nothing to do with Gitlab::Email::Receiver

See merge request !3360
This commit is contained in:
Douwe Maan 2016-03-23 13:58:21 +00:00
commit a29c195423
1 changed files with 1 additions and 1 deletions

View File

@ -304,7 +304,7 @@ class Project < ActiveRecord::Base
end
def find_with_namespace(id)
namespace_path, project_path = id.split('/')
namespace_path, project_path = id.split('/', 2)
return nil if !namespace_path || !project_path