diff options
author | John Cai <jcai@gitlab.com> | 2019-02-04 16:45:46 -0800 |
---|---|---|
committer | John Cai <jcai@gitlab.com> | 2019-02-04 16:45:46 -0800 |
commit | adc2941c4fe242824c9f6ab4be6bff536b8998cb (patch) | |
tree | 6053b3eb68d80269286cd2bc7d7b699a7c8c7667 | |
parent | 7f880007d41f0281833915b635244c03a4083b40 (diff) | |
download | gitlab-ce-jc-geo-dupe.tar.gz |
Make join_pool_repository publicjc-geo-dupe
-rw-r--r-- | app/models/project.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/app/models/project.rb b/app/models/project.rb index d4e2ed883bc..ee1de693ac2 100644 --- a/app/models/project.rb +++ b/app/models/project.rb @@ -2074,6 +2074,12 @@ class Project < ActiveRecord::Base pool_repository&.link_repository(repository) end + def join_pool_repository + return unless pool_repository + + ObjectPool::JoinWorker.perform_async(pool_repository.id, self.id) + end + private def merge_requests_allowing_collaboration(source_branch = nil) @@ -2093,12 +2099,6 @@ class Project < ActiveRecord::Base pool end - def join_pool_repository - return unless pool_repository - - ObjectPool::JoinWorker.perform_async(pool_repository.id, self.id) - end - def use_hashed_storage if self.new_record? && Gitlab::CurrentSettings.hashed_storage_enabled self.storage_version = LATEST_STORAGE_VERSION |