From c0da3fd5574e962d8b1e3dc138a84393b24e61f5 Mon Sep 17 00:00:00 2001 From: Petr Baudis Date: Fri, 30 Oct 2009 01:45:21 +0100 Subject: [PATCH] Turn off gc.auto by default, dangerous for forks --- Girocco/Project.pm | 2 ++ jobs/README | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Girocco/Project.pm b/Girocco/Project.pm index af1b578..8ab2ee1 100644 --- a/Girocco/Project.pm +++ b/Girocco/Project.pm @@ -368,6 +368,8 @@ sub _setup { or die "git init $self->{path} failed: $?"; system($Girocco::Config::git_bin, '--git-dir='.$self->{path}, 'config', 'receive.denyNonFastforwards', 'false') == 0 or die "disabling receive.denyNonFastforwards failed: $?"; + system($Girocco::Config::git_bin, '--git-dir='.$self->{path}, 'config', 'gc.auto', '0') == 0 + or die "disabling gc.auto failed: $?"; $self->_properties_save; $self->_alternates_setup; diff --git a/jobs/README b/jobs/README index d4607f1..d120d96 100644 --- a/jobs/README +++ b/jobs/README @@ -8,5 +8,5 @@ per-repository. OR use different permission control than Group. Otherwise, you need to copy fixup* over to ~root and run them from root's crontab. (They are completely self-contained so that you can easily review them.) -* gccheck.sh: You DO NOT NEED this if you have pushing turned off, or - don't care about infinitely growing repositories. +* gccheck.sh: You should enable this to avoid infinitely growing + repositories. -- 2.11.4.GIT