Commit f9de363e authored by Georges Racinet's avatar Georges Racinet 🦑
Browse files

GitalyClient: really work with Git-qualified storage name

It can be worthwile for callers, such as `Gitlab::Workhorse`
not to bother making special case and just let `GitalyClient`
handle `git:shard_name` as well as just `shard_name`.

That was the intent, but it didn't work.

Spotted by RSpec tests for `Gitlab::Workhorse`. Git archive
production was certainly not working.

--HG--
branch : heptapod
parent 7b40516345d1
Pipeline #14581 skipped with stage
......@@ -126,7 +126,7 @@ def self.random_storage
def self.vcs_storage_split(vcs_storage)
split = vcs_storage.split(VCS_QUALIFIER_SEPARATOR)
if split.length == 1 || split[0] == 'git'
[vcs_storage, 'gitaly']
[split.last, 'gitaly']
elsif split[0] == 'hg'
[split[1], 'hgitaly']
else
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment