From d5fb181ebaa6baab67a61dbfe784029e36f74a28 Mon Sep 17 00:00:00 2001 From: Jacob Vosmaer Date: Wed, 6 Apr 2016 16:18:46 +0200 Subject: Revert "Do not prune objects during 'git gc'" This reverts commit 1ca8a44f0baa1728650308fe992f42660170ae16. Never pruning loose objects at all is not really a solution for anything, and it causes annoying `git gc --auto` warnings. --- 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 77d70df..9276344 100644 --- a/lib/gitlab_projects.rb +++ b/lib/gitlab_projects.rb @@ -358,7 +358,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 --no-prune) + cmd = %W(git --git-dir=#{full_path} gc) system(*cmd) end end -- cgit v1.2.1