summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2019-08-23 12:39:44 +0000
committerStan Hu <stanhu@gmail.com>2019-08-23 12:39:44 +0000
commitfcfd12e0fc51987c9f8c4eb95f080970d0fd64b7 (patch)
tree35f6f07bbf20f7904dc8fa01b06bbffcf671d5ec
parent91b77a162eb2d1eeb4c08ceed11898c698ffb2db (diff)
parentb0231f48676c84b26fab26a5c43b996c66c1924d (diff)
downloadgitlab-ce-fcfd12e0fc51987c9f8c4eb95f080970d0fd64b7.tar.gz
Merge branch 'master' into 'master'
Reduce dedup calls to gc only See merge request gitlab-org/gitlab-ce!32083
-rw-r--r--app/workers/git_garbage_collect_worker.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/workers/git_garbage_collect_worker.rb b/app/workers/git_garbage_collect_worker.rb
index 489d6215774..5499e12e49b 100644
--- a/app/workers/git_garbage_collect_worker.rb
+++ b/app/workers/git_garbage_collect_worker.rb
@@ -24,7 +24,7 @@ class GitGarbageCollectWorker
task = task.to_sym
- ::Projects::GitDeduplicationService.new(project).execute
+ ::Projects::GitDeduplicationService.new(project).execute if task == :gc
gitaly_call(task, project.repository.raw_repository)