From 1ca8a44f0baa1728650308fe992f42660170ae16 Mon Sep 17 00:00:00 2001 From: Jacob Vosmaer Date: Mon, 14 Mar 2016 17:33:24 +0100 Subject: Do not prune objects during 'git gc' This is a workaround to reduce the impact of https://gitlab.com/gitlab-org/gitlab-ce/issues/13524 . --- lib/gitlab_projects.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/gitlab_projects.rb') diff --git a/lib/gitlab_projects.rb b/lib/gitlab_projects.rb index 82a16fc..b3d6883 100644 --- a/lib/gitlab_projects.rb +++ b/lib/gitlab_projects.rb @@ -288,7 +288,7 @@ class GitlabProjects $logger.error "gc failed: destination path <#{full_path}> does not exist." return false end - cmd = %W(git --git-dir=#{full_path} gc) + cmd = %W(git --git-dir=#{full_path} gc --no-prune) system(*cmd) end end -- cgit v1.2.1