[sysadmin/repo-management] maintenance: maintenance: Only run a convention gc on pool repositories as --aggressive is only needed in specific circumstances.

Ben Cooksley <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit 89aa828ebe768dd72dc59ccc82a97fdb30c29aeb by Ben Cooksley.
Committed on 09/08/2026 at 08:40.
Pushed by bcooksley into branch 'master'.

maintenance: Only run a convention gc on pool repositories as --aggressive is only needed in specific circumstances.
This significantly speeds up running the script and reduces memory usage substantially for translation repos as well

M  +1    -1    maintenance/run-gitlab-cleanup.sh

https://invent.kde.org/sysadmin/repo-management/-/commit/89aa828ebe768dd72dc59ccc82a97fdb30c29aeb

diff --git a/maintenance/run-gitlab-cleanup.sh b/maintenance/run-gitlab-cleanup.sh
index 536d2a0..b339b91 100644
--- a/maintenance/run-gitlab-cleanup.sh
+++ b/maintenance/run-gitlab-cleanup.sh
@@ -17,7 +17,7 @@ bundle exec rails runner -e production ~/repo-management/maintenance/gitlab-repo
 cd /srv/git/repositories/@pools/
 for repo in `find -maxdepth 3 -mindepth 3 -type d`; do
     cd /srv/git/repositories/@pools/$repo
-    git gc --aggressive
+    git gc
     sleep 2
     cd /srv/git/repositories/@pools/;
 done
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.