diff options
author | Jacob Vosmaer <contact@jacobvosmaer.nl> | 2016-04-06 16:18:46 +0200 |
---|---|---|
committer | Jacob Vosmaer <contact@jacobvosmaer.nl> | 2016-04-06 16:18:46 +0200 |
commit | d5fb181ebaa6baab67a61dbfe784029e36f74a28 (patch) | |
tree | dd9d50235f9deff904dd39f32d8fe68d06c1a1d9 | |
parent | b8dffd8379b4c2e29243805396bda71c512e004b (diff) | |
download | gitlab-shell-d5fb181ebaa6baab67a61dbfe784029e36f74a28.tar.gz |
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.
-rw-r--r-- | lib/gitlab_projects.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |