diff options
author | Kamil TrzciĆski <ayufan@ayufan.eu> | 2017-04-13 16:19:37 +0000 |
---|---|---|
committer | Felipe Artur <felipefac@gmail.com> | 2017-04-13 14:38:54 -0300 |
commit | 78854cd84c96437f517b6c5a834afad5fa76ae0a (patch) | |
tree | 77e0ee0415193767d692cac54a55d5f264f5a6df /lib | |
parent | c1c0e9e0843ab7076f0d981fb63ce8dac2968066 (diff) | |
download | gitlab-ce-78854cd84c96437f517b6c5a834afad5fa76ae0a.tar.gz |
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.rb | 4 |
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 |