summaryrefslogtreecommitdiff
path: root/app/models
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2016-05-17 13:20:11 -0500
committerKamil Trzcinski <ayufan@ayufan.eu>2016-05-17 13:20:11 -0500
commit24145592e804ffbe58a38b15095808919337d545 (patch)
treea3d4108b84bfab9f7813b982ce53fdd45d5306f4 /app/models
parenta82109eee80bf703ad8e82de2410f490e5fc6d54 (diff)
downloadgitlab-ce-24145592e804ffbe58a38b15095808919337d545.tar.gz
Provide full test coverage to lib/container_registry API implementation
Diffstat (limited to 'app/models')
-rw-r--r--app/models/project.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/project.rb b/app/models/project.rb
index 8e80a6b5c01..09a214da043 100644
--- a/app/models/project.rb
+++ b/app/models/project.rb
@@ -336,7 +336,7 @@ class Project < ActiveRecord::Base
url = Gitlab.config.registry.api_url
host_port = Gitlab.config.registry.host_port
registry = ContainerRegistry::Registry.new(url, token: token, path: host_port)
- registry[path_with_namespace]
+ registry.repository(path_with_namespace)
end
end