From 2d212e401e099543f7612e67ff35b4e8b10593c0 Mon Sep 17 00:00:00 2001 From: Zeger-Jan van de Weg Date: Thu, 16 Aug 2018 13:00:24 +0200 Subject: Remove repo_path from GitlabShell The internal api returns '/' from gitlab, since `8fad07383ada021fc995294fd0fe0f77fe37da35` from GitLab CE. To clean up later, https://gitlab.com/gitlab-org/gitlab-shell/issues/135 was created. This change closes that issue, making it possible to remove the field from the response on GitLab-CE too. Given the Rails app always returns `/` as the repository_path, the associated checks are basically a noop too. The tests are updated and at times look a little fishy, but those are testing code that is to be removed in another MR. Closes https://gitlab.com/gitlab-org/gitlab-shell/issues/135 --- spec/gitlab_access_spec.rb | 2 -- 1 file changed, 2 deletions(-) (limited to 'spec/gitlab_access_spec.rb') diff --git a/spec/gitlab_access_spec.rb b/spec/gitlab_access_spec.rb index ffaac8a..a4f633d 100644 --- a/spec/gitlab_access_spec.rb +++ b/spec/gitlab_access_spec.rb @@ -13,7 +13,6 @@ describe GitlabAccess do gl_id: 'user-123', gl_username: 'testuser', git_config_options: ['receive.MaxInputSize=10000'], - repository_path: '/home/git/repositories', gitaly: nil, git_protocol: 'version=2')) end @@ -51,7 +50,6 @@ describe GitlabAccess do gl_id: nil, gl_username: nil, git_config_options: nil, - repository_path: nil, gitaly: nil, git_protocol: nil )) -- cgit v1.2.1