diff options
author | Stan Hu <stanhu@gmail.com> | 2019-05-10 06:53:43 -0500 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2019-05-10 06:55:53 -0500 |
commit | 36b1a2d7d08e1615f13fe839cc8251ba76ea87c6 (patch) | |
tree | 3b210a73fe1842352dcf403e68329810d58b5501 /app/services | |
parent | b575b303434577ab7d409a8c7321c0bce96d0994 (diff) | |
download | gitlab-ce-36b1a2d7d08e1615f13fe839cc8251ba76ea87c6.tar.gz |
Don't run full gc in AfterImportServicesh-revert-full-gc-after-import
Pull mirrors would run the `Projects::AfterImportService`, which would
force a `git gc` each time it finished. This is overkill and not
necessary now that we have refs packed more frequently
(https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/27826).
Closes https://gitlab.com/gitlab-org/gitlab-ee/issues/11556
Diffstat (limited to 'app/services')
-rw-r--r-- | app/services/projects/after_import_service.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/projects/after_import_service.rb b/app/services/projects/after_import_service.rb index afb9048e87b..bbdde4408d2 100644 --- a/app/services/projects/after_import_service.rb +++ b/app/services/projects/after_import_service.rb @@ -9,7 +9,7 @@ module Projects end def execute - Projects::HousekeepingService.new(@project, :gc).execute do + Projects::HousekeepingService.new(@project).execute do repository.delete_all_refs_except(RESERVED_REF_PREFIXES) end rescue Projects::HousekeepingService::LeaseTaken => e |