diff options
author | Jacob Vosmaer (GitLab) <jacob@gitlab.com> | 2018-03-29 11:35:33 +0300 |
---|---|---|
committer | Sean McGivern <sean@mcgivern.me.uk> | 2018-03-29 11:35:33 +0300 |
commit | e5e4cd96cf948d08296129a086a3b2e86ff57643 (patch) | |
tree | 02fb2b50be6802a2ce60a54aa1ece0d15fdc2ba0 /lib | |
parent | f4ca6e9a9af8dbaabe21e4c45ca6f219a3e9077d (diff) |
Gitlab-workhorse still needs RepoPath on Git HTTP
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/workhorse.rb | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/lib/gitlab/workhorse.rb b/lib/gitlab/workhorse.rb index a3012eca04c..b102812ec12 100644 --- a/lib/gitlab/workhorse.rb +++ b/lib/gitlab/workhorse.rb @@ -21,20 +21,19 @@ module Gitlab raise "Unsupported action: #{action}" unless ALLOWED_GIT_HTTP_ACTIONS.include?(action.to_s) project = repository.project - params = { + + { GL_ID: Gitlab::GlId.gl_id(user), GL_REPOSITORY: Gitlab::GlRepository.gl_repository(project, is_wiki), GL_USERNAME: user&.username, - ShowAllRefs: show_all_refs - } - server = { - address: Gitlab::GitalyClient.address(project.repository_storage), - token: Gitlab::GitalyClient.token(project.repository_storage) + ShowAllRefs: show_all_refs, + Repository: repository.gitaly_repository.to_h, + RepoPath: 'ignored but not allowed to be empty in gitlab-workhorse', + GitalyServer: { + address: Gitlab::GitalyClient.address(project.repository_storage), + token: Gitlab::GitalyClient.token(project.repository_storage) + } } - params[:Repository] = repository.gitaly_repository.to_h - params[:GitalyServer] = server - - params end def artifact_upload_ok |