summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Krylov <krylovbv@mail.ru>2019-08-22 03:39:03 +0000
committerBoris Krylov <krylovbv@mail.ru>2019-08-22 03:39:03 +0000
commitb0231f48676c84b26fab26a5c43b996c66c1924d (patch)
tree340e841fb6681b50da52f082026a720df5307579
parent1d5f5aa896a38104c375ac6ddd168d03d408f05e (diff)
downloadgitlab-ce-b0231f48676c84b26fab26a5c43b996c66c1924d.tar.gz
Reduce dedup calls to gc only
-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)