diff options
Diffstat (limited to 'app/finders/repositories/tree_finder.rb')
-rw-r--r-- | app/finders/repositories/tree_finder.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/finders/repositories/tree_finder.rb b/app/finders/repositories/tree_finder.rb index 231c1de1513..2a8971d4d86 100644 --- a/app/finders/repositories/tree_finder.rb +++ b/app/finders/repositories/tree_finder.rb @@ -13,7 +13,7 @@ module Repositories def execute(gitaly_pagination: false) raise CommitMissingError unless commit_exists? - request_params = { recursive: recursive } + request_params = { recursive: recursive, rescue_not_found: rescue_not_found } request_params[:pagination_params] = pagination_params if gitaly_pagination repository.tree(commit.id, path, **request_params).sorted_entries @@ -51,6 +51,10 @@ module Repositories params[:recursive] end + def rescue_not_found + params[:rescue_not_found] + end + def pagination_params { limit: params[:per_page] || Kaminari.config.default_per_page, |