Skip to content
Snippets Groups Projects
Commit ecc060d7 authored by Lin Jen-Shin's avatar Lin Jen-Shin
Browse files

Make sure we get only two returns

parent 7124e5a4
No related branches found
No related tags found
No related merge requests found
Loading
@@ -304,7 +304,7 @@ class Project < ActiveRecord::Base
Loading
@@ -304,7 +304,7 @@ class Project < ActiveRecord::Base
end end
   
def find_with_namespace(id) 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 return nil if !namespace_path || !project_path
   
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