summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorZeger-Jan van de Weg <git@zjvandeweg.nl>2018-08-16 14:23:54 +0200
committerZeger-Jan van de Weg <git@zjvandeweg.nl>2018-08-20 10:10:52 +0200
commitd856f300a99bc9786e717243378fd9c088d25db0 (patch)
tree6c5ac002190186e2dcd8a6f5efe4178e8963f465 /spec
parentabb55c839ceedeb8f32f9af4ad791d349ab03f8c (diff)
downloadgitlab-shell-d856f300a99bc9786e717243378fd9c088d25db0.tar.gz
Remove non Gitaly code paths
All shell access goes through Gitaly, so dead code paths exist to support the legacy way too. This change mostly removes the dead code from `#process_cmd`.
Diffstat (limited to 'spec')
-rw-r--r--spec/gitlab_shell_spec.rb16
1 files changed, 0 insertions, 16 deletions
diff --git a/spec/gitlab_shell_spec.rb b/spec/gitlab_shell_spec.rb
index 96c4878..1841e1e 100644
--- a/spec/gitlab_shell_spec.rb
+++ b/spec/gitlab_shell_spec.rb
@@ -201,14 +201,6 @@ describe GitlabShell do
end
end
- context 'git-upload-pack' do
- it_behaves_like 'upload-pack', 'git-upload-pack'
- end
-
- context 'git upload-pack' do
- it_behaves_like 'upload-pack', 'git upload-pack'
- end
-
context 'gitaly-upload-pack' do
let(:ssh_cmd) { "git-upload-pack gitlab-ci.git" }
before do
@@ -309,14 +301,6 @@ describe GitlabShell do
end
end
- context 'git-upload-archive' do
- it_behaves_like 'upload-archive', 'git-upload-archive'
- end
-
- context 'git upload-archive' do
- it_behaves_like 'upload-archive', 'git upload-archive'
- end
-
context 'gitaly-upload-archive' do
before do
allow(api).to receive(:check_access).and_return(gitaly_check_access)