summaryrefslogtreecommitdiff
path: root/lib/api/helpers.rb
diff options
context:
space:
mode:
authorMarin Jankovski <maxlazio@gmail.com>2017-02-06 10:54:53 +0100
committerMarin Jankovski <maxlazio@gmail.com>2017-02-06 10:54:53 +0100
commit3f01f05bde8e55b533bc0468ed62485141e827e8 (patch)
tree93d8a29b0b8f95fa7fd60d82970392c6b8a8e97a /lib/api/helpers.rb
parentcaa7344d48080c07658331b991399cf7a86f926f (diff)
parent572fb0be9b1d45437b7c0ed1000399657f471ec7 (diff)
downloadgitlab-ce-3f01f05bde8e55b533bc0468ed62485141e827e8.tar.gz
Merge branch 'master' of gitlab.com:gitlab-org/gitlab-ce
Diffstat (limited to 'lib/api/helpers.rb')
-rw-r--r--lib/api/helpers.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/helpers.rb b/lib/api/helpers.rb
index a1d7b323f4f..eb5b947172a 100644
--- a/lib/api/helpers.rb
+++ b/lib/api/helpers.rb
@@ -45,7 +45,7 @@ module API
if id =~ /^\d+$/
Project.find_by(id: id)
else
- Project.find_with_namespace(id)
+ Project.find_by_full_path(id)
end
end