Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/git/tree.rb')
-rw-r--r--lib/gitlab/git/tree.rb16
1 files changed, 9 insertions, 7 deletions
diff --git a/lib/gitlab/git/tree.rb b/lib/gitlab/git/tree.rb
index 4747ab55c63..6365ac941de 100644
--- a/lib/gitlab/git/tree.rb
+++ b/lib/gitlab/git/tree.rb
@@ -12,15 +12,17 @@ module Gitlab
class << self
# Get list of tree objects
# for repository based on commit sha and path
- def where(
- repository, sha, path = nil, recursive = false, skip_flat_paths = true, rescue_not_found = true,
- pagination_params = nil)
+ def tree_entries(
+ repository:,
+ sha:,
+ path: nil,
+ recursive: false,
+ skip_flat_paths: true,
+ rescue_not_found: true,
+ pagination_params: nil
+ )
path = nil if path == '' || path == '/'
- tree_entries(repository, sha, path, recursive, skip_flat_paths, rescue_not_found, pagination_params)
- end
-
- def tree_entries(repository, sha, path, recursive, skip_flat_paths, rescue_not_found, pagination_params = nil)
wrapped_gitaly_errors do
repository.gitaly_commit_client.tree_entries(
repository, sha, path, recursive, skip_flat_paths, pagination_params)