Commit 22b36aec authored by Robert Speicher's avatar Robert Speicher

Merge branch 'gc-no-prune' into 'master'

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 .

See merge request !44
parents bceed736 1ca8a44f
...@@ -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