diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-08-19 12:08:42 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-08-19 12:08:42 +0300 |
commit | b76ae638462ab0f673e5915986070518dd3f9ad3 (patch) | |
tree | bdab0533383b52873be0ec0eb4d3c66598ff8b91 /lib/extracts_path.rb | |
parent | 434373eabe7b4be9593d18a585fb763f1e5f1a6f (diff) |
Add latest changes from gitlab-org/gitlab@14-2-stable-eev14.2.0-rc42
Diffstat (limited to 'lib/extracts_path.rb')
-rw-r--r-- | lib/extracts_path.rb | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/lib/extracts_path.rb b/lib/extracts_path.rb index 055a3a771c2..8f6576c2206 100644 --- a/lib/extracts_path.rb +++ b/lib/extracts_path.rb @@ -47,16 +47,6 @@ module ExtractsPath end # rubocop:enable Gitlab/ModuleWithInstanceVariables - def lfs_blob_ids - blob_ids = tree.blobs.map(&:id) - - # When current endpoint is a Blob then `tree.blobs` will be empty, it means we need to analyze - # the current Blob in order to determine if it's a LFS object - blob_ids = Array.wrap(@repo.blob_at(@commit.id, @path)&.id) if blob_ids.empty? # rubocop:disable Gitlab/ModuleWithInstanceVariables - - @lfs_blob_ids = Gitlab::Git::Blob.batch_lfs_pointers(repository_container.repository, blob_ids).map(&:id) # rubocop:disable Gitlab/ModuleWithInstanceVariables - end - private # Override in controllers to determine which actions are subject to the redirect |