Commit d5fb181e authored by Jacob Vosmaer's avatar Jacob Vosmaer

Revert "Do not prune objects during 'git gc'"

This reverts commit 1ca8a44f.

Never pruning loose objects at all is not really a solution for
anything, and it causes annoying `git gc --auto` warnings.
parent b8dffd83
...@@ -358,7 +358,7 @@ class GitlabProjects ...@@ -358,7 +358,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 --no-prune) cmd = %W(git --git-dir=#{full_path} gc)
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