From e6d0e95cc458db347728f063b174af68a1ca5fd7 Mon Sep 17 00:00:00 2001 From: sterni Date: Fri, 15 Nov 2024 13:36:53 +0100 Subject: fix(sterni/code.sterni.lv): gc after mirroring repositories Repositories (especially nixpkgs) WILL grow to ridiculous sizes otherwise, killing cgit performance in the process. Change-Id: I3bef3e5dc5a61152e89fd53e31f14e78193a4888 Reviewed-on: https://cl.tvl.fyi/c/depot/+/12793 Autosubmit: sterni Tested-by: BuildkiteCI Reviewed-by: sterni --- users/sterni/machines/ingeborg/http/code.sterni.lv.nix | 3 +++ 1 file changed, 3 insertions(+) (limited to 'users/sterni/machines/ingeborg') diff --git a/users/sterni/machines/ingeborg/http/code.sterni.lv.nix b/users/sterni/machines/ingeborg/http/code.sterni.lv.nix index 24ce218d48d6..7a6f82395a97 100644 --- a/users/sterni/machines/ingeborg/http/code.sterni.lv.nix +++ b/users/sterni/machines/ingeborg/http/code.sterni.lv.nix @@ -260,6 +260,9 @@ in cd "${path}" git fetch "${repo.upstream}" '+refs/*:refs/*' --prune + + # no auto gc here and we're not pruning for nothing… + git gc ''; serviceConfig = { -- cgit 1.4.1