summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Lopez <james@jameslopez.es>2018-07-31 09:45:48 +0200
committerJames Lopez <james@jameslopez.es>2018-08-01 07:51:05 +0200
commit72888f59a57084a7dab49b3b67bc8622db34777f (patch)
tree81bbd88ba6e3a47361acf32a5756e5e8ec5071e0
parent4304099c3fee2382aa10a0edb57d932779b83cc9 (diff)
downloadgitlab-shell-72888f59a57084a7dab49b3b67bc8622db34777f.tar.gz
update gitlab shell to remove git_protocol env var
-rw-r--r--lib/gitlab_shell.rb1
-rw-r--r--spec/gitlab_shell_spec.rb1
2 files changed, 0 insertions, 2 deletions
diff --git a/lib/gitlab_shell.rb b/lib/gitlab_shell.rb
index 59aaa89..39dabe9 100644
--- a/lib/gitlab_shell.rb
+++ b/lib/gitlab_shell.rb
@@ -180,7 +180,6 @@ class GitlabShell # rubocop:disable Metrics/ClassLength
'GL_ID' => @gl_id,
'GL_PROTOCOL' => GL_PROTOCOL,
'GL_REPOSITORY' => @gl_repository,
- 'GIT_PROTOCOL' => @git_protocol,
'GL_USERNAME' => @username
}
if @gitaly && @gitaly.include?('token')
diff --git a/spec/gitlab_shell_spec.rb b/spec/gitlab_shell_spec.rb
index 0443576..f2c215e 100644
--- a/spec/gitlab_shell_spec.rb
+++ b/spec/gitlab_shell_spec.rb
@@ -463,7 +463,6 @@ describe GitlabShell do
'GL_PROTOCOL' => 'ssh',
'GL_REPOSITORY' => gl_repository,
'GL_USERNAME' => 'testuser',
- 'GIT_PROTOCOL' => 'version=2'
}
end
let(:exec_options) { { unsetenv_others: true, chdir: ROOT_PATH } }