summaryrefslogtreecommitdiff
path: root/lib/container_registry
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-04-04 11:58:15 +0200
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-04-04 11:58:15 +0200
commit1c91d52a70407e15f9b106bafc6505895214f3b8 (patch)
tree4e2a820cb0a1308d65f0b404db98dd83eae49860 /lib/container_registry
parent97c6cf59b361a0fe1b22cc999a2b2dd64b0a30f3 (diff)
downloadgitlab-ce-1c91d52a70407e15f9b106bafc6505895214f3b8.tar.gz
Remove unneeded char in registry repository path
Diffstat (limited to 'lib/container_registry')
-rw-r--r--lib/container_registry/path.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/container_registry/path.rb b/lib/container_registry/path.rb
index 2291291d1fc..89973b2e7b8 100644
--- a/lib/container_registry/path.rb
+++ b/lib/container_registry/path.rb
@@ -56,7 +56,7 @@ module ContainerRegistry
def repository_name
return unless has_project?
- @path.remove(%r(^?#{Regexp.escape(repository_project.full_path)}/?))
+ @path.remove(%r(^#{Regexp.escape(repository_project.full_path)}/?))
end
def to_s