summaryrefslogtreecommitdiff
path: root/lib/api
diff options
context:
space:
mode:
authorZeger-Jan van de Weg <git@zjvandeweg.nl>2018-05-17 15:19:32 +0200
committerZeger-Jan van de Weg <git@zjvandeweg.nl>2018-05-17 15:19:32 +0200
commita33d591602b40d224b4fdb74300e3b0d96bda7df (patch)
tree22d6e48e6f3f9fd9eba1183d9f32daef0ba39a90 /lib/api
parentec7163ae1db54f4adce7942673abc8a4a073fbd6 (diff)
downloadgitlab-ce-a33d591602b40d224b4fdb74300e3b0d96bda7df.tar.gz
Don't pass the repository path to Gitlab Shell
This isn't a requirement, and removes deprecated method calls
Diffstat (limited to 'lib/api')
-rw-r--r--lib/api/helpers/internal_helpers.rb6
-rw-r--r--lib/api/internal.rb2
2 files changed, 1 insertions, 7 deletions
diff --git a/lib/api/helpers/internal_helpers.rb b/lib/api/helpers/internal_helpers.rb
index abe3d353984..83151be82ad 100644
--- a/lib/api/helpers/internal_helpers.rb
+++ b/lib/api/helpers/internal_helpers.rb
@@ -89,12 +89,6 @@ module API
end
end
- # Return the repository full path so that gitlab-shell has it when
- # handling ssh commands
- def repository_path
- repository.path_to_repo
- end
-
# Return the Gitaly Address if it is enabled
def gitaly_payload(action)
return unless %w[git-receive-pack git-upload-pack git-upload-archive].include?(action)
diff --git a/lib/api/internal.rb b/lib/api/internal.rb
index 6b72caea8fd..798a8dbb929 100644
--- a/lib/api/internal.rb
+++ b/lib/api/internal.rb
@@ -59,7 +59,7 @@ module API
status: true,
gl_repository: gl_repository,
gl_username: user&.username,
- repository_path: repository_path,
+ repository_path: nil,
gitaly: gitaly_payload(params[:action])
}
end