summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2019-08-23 12:39:44 +0000
committerJohn Jarvis <jarv@gitlab.com>2019-08-23 14:54:50 +0200
commit41f47198210c1ca54f90d3d093084a3ca89e603c (patch)
tree26296abfee8124256b7478bccd7a07dcaa52df7d
parenta81d63d56adaed78b5c9c6f06461ef1b0e5a6eb2 (diff)
downloadgitlab-ce-12-2-stable-patch-1.tar.gz
Merge branch 'master' into 'master'12-2-stable-patch-1
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)