diff options
author | Rubén Dávila <ruben@gitlab.com> | 2018-05-09 21:20:28 +0300 |
---|---|---|
committer | Rubén Dávila <ruben@gitlab.com> | 2018-05-09 21:20:28 +0300 |
commit | 5b584a0fd24ec80b5d8b7bdb0eb3f479208bf622 (patch) | |
tree | 45044dd637b811ac0b10f2f9daebd41715482ddb /lib/gitlab/git/blob.rb | |
parent | 1802954b4785fa3d6bd3686f5b6de3094a2eb851 (diff) |
Backport some changes from gitlab-ee!5476
The lib/gitlab/git/repository.rb needs to have the same content between
gitlab-ce and gitlab-ee in order to have Gitaly working fine.
Diffstat (limited to 'lib/gitlab/git/blob.rb')
-rw-r--r-- | lib/gitlab/git/blob.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/gitlab/git/blob.rb b/lib/gitlab/git/blob.rb index eabcf46cf58..d78d29b7ac6 100644 --- a/lib/gitlab/git/blob.rb +++ b/lib/gitlab/git/blob.rb @@ -62,6 +62,12 @@ module Gitlab end end + # Returns an array of Blob instances just with the metadata, that means + # the data attribute has no content. + def batch_metadata(repository, blob_references) + batch(repository, blob_references, blob_size_limit: 0) + end + # Find LFS blobs given an array of sha ids # Returns array of Gitlab::Git::Blob # Does not guarantee blob data will be set |