diff options
Diffstat (limited to 'lib/gitlab/git/remote_repository.rb')
-rw-r--r-- | lib/gitlab/git/remote_repository.rb | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/lib/gitlab/git/remote_repository.rb b/lib/gitlab/git/remote_repository.rb index 234541d8145..0ea009930b0 100644 --- a/lib/gitlab/git/remote_repository.rb +++ b/lib/gitlab/git/remote_repository.rb @@ -53,23 +53,6 @@ module Gitlab gitaly_repository.relative_path == other_repository.relative_path end - def fetch_env - gitaly_ssh = File.absolute_path(File.join(Gitlab.config.gitaly.client_path, 'gitaly-ssh')) - gitaly_address = gitaly_client.address(storage) - gitaly_token = gitaly_client.token(storage) - - request = Gitaly::SSHUploadPackRequest.new(repository: gitaly_repository) - env = { - 'GITALY_ADDRESS' => gitaly_address, - 'GITALY_PAYLOAD' => request.to_json, - 'GITALY_WD' => Dir.pwd, - 'GIT_SSH_COMMAND' => "#{gitaly_ssh} upload-pack" - } - env['GITALY_TOKEN'] = gitaly_token if gitaly_token.present? - - env - end - def path @repository.path end |