Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorKamil TrzciƄski <ayufan@ayufan.eu>2017-04-13 19:19:37 +0300
committerFelipe Artur <felipefac@gmail.com>2017-04-13 20:38:54 +0300
commit78854cd84c96437f517b6c5a834afad5fa76ae0a (patch)
tree77e0ee0415193767d692cac54a55d5f264f5a6df /lib
parentc1c0e9e0843ab7076f0d981fb63ce8dac2968066 (diff)
Merge branch 'fix/gb/fix-registry-for-uppercased-project-paths' into 'master'
Fix registry for projects with uppercases in path Closes #30880 See merge request !10674
Diffstat (limited to 'lib')
-rw-r--r--lib/container_registry/path.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/container_registry/path.rb b/lib/container_registry/path.rb
index a4b5f2aba6c..4a585996aa5 100644
--- a/lib/container_registry/path.rb
+++ b/lib/container_registry/path.rb
@@ -15,7 +15,7 @@ module ContainerRegistry
LEVELS_SUPPORTED = 3
def initialize(path)
- @path = path
+ @path = path.to_s.downcase
end
def valid?
@@ -25,7 +25,7 @@ module ContainerRegistry
end
def components
- @components ||= @path.to_s.split('/')
+ @components ||= @path.split('/')
end
def nodes