diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-02-02 06:08:56 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-02-02 06:08:56 +0000 |
commit | 208e2e308c444624e1d864c936ad7fe178ffc7e9 (patch) | |
tree | 3d779cbf4c44a77417cef8f4764adf6e8a7316da /app/models/repository.rb | |
parent | 78214bf7421d73e288466100df584d99e91154af (diff) | |
download | gitlab-ce-208e2e308c444624e1d864c936ad7fe178ffc7e9.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/repository.rb')
-rw-r--r-- | app/models/repository.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/app/models/repository.rb b/app/models/repository.rb index ee919f844dc..e7ad38864c8 100644 --- a/app/models/repository.rb +++ b/app/models/repository.rb @@ -516,10 +516,12 @@ class Repository end # items is an Array like: [[oid, path], [oid1, path1]] - def blobs_at(items) + def blobs_at(items, blob_size_limit: Gitlab::Git::Blob::MAX_DATA_DISPLAY_SIZE) return [] unless exists? - raw_repository.batch_blobs(items).map { |blob| Blob.decorate(blob, project) } + raw_repository.batch_blobs(items, blob_size_limit: blob_size_limit).map do |blob| + Blob.decorate(blob, project) + end end def root_ref |