Commit 1ca8a44f authored by Jacob Vosmaer's avatar Jacob Vosmaer

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 .
parent bceed736
...@@ -288,7 +288,7 @@ class GitlabProjects ...@@ -288,7 +288,7 @@ class GitlabProjects
$logger.error "gc failed: destination path <#{full_path}> does not exist." $logger.error "gc failed: destination path <#{full_path}> does not exist."
return false return false
end end
cmd = %W(git --git-dir=#{full_path} gc) cmd = %W(git --git-dir=#{full_path} gc --no-prune)
system(*cmd) system(*cmd)
end end
end end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment