diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-08-15 15:10:41 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-08-15 15:10:41 +0300 |
commit | 8470023ba6ca065d0491c37c33e2348e499df8b3 (patch) | |
tree | 3f44d0d084e40edb5f97e66b4b8421efd6fd08f6 /app/models/repository.rb | |
parent | cd5f4619db234c00d0c01ed63bb92df6c10b0fd3 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/repository.rb')
-rw-r--r-- | app/models/repository.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/app/models/repository.rb b/app/models/repository.rb index 6113f54367d..0bd26e7ad4c 100644 --- a/app/models/repository.rb +++ b/app/models/repository.rb @@ -1252,6 +1252,16 @@ class Repository raw_repository.get_patch_id(old_revision, new_revision) end + def object_pool + gitaly_object_pool = raw.object_pool + + return unless gitaly_object_pool + + source_project = project&.pool_repository&.source_project + + Gitlab::Git::ObjectPool.init_from_gitaly(gitaly_object_pool, source_project&.repository) + end + private def ancestor_cache_key(ancestor_id, descendant_id) |