Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--internal/git/command_factory.go3
-rw-r--r--internal/git/command_factory_test.go1
2 files changed, 4 insertions, 0 deletions
diff --git a/internal/git/command_factory.go b/internal/git/command_factory.go
index bfb472030..c7e6b1036 100644
--- a/internal/git/command_factory.go
+++ b/internal/git/command_factory.go
@@ -586,6 +586,9 @@ func (cf *ExecCommandFactory) GlobalConfiguration(ctx context.Context) ([]Config
// of it ourselves.
{Key: "gc.auto", Value: "0"},
+ // Disable automatic maintenance as we never enable any tasks.
+ {Key: "maintenance.auto", Value: "0"},
+
// CRLF line endings will get replaced with LF line endings
// when writing blobs to the object database. No conversion is
// done when reading blobs from the object database. This is
diff --git a/internal/git/command_factory_test.go b/internal/git/command_factory_test.go
index 48d19bde3..b2cf5601d 100644
--- a/internal/git/command_factory_test.go
+++ b/internal/git/command_factory_test.go
@@ -606,6 +606,7 @@ func TestExecCommandFactory_config(t *testing.T) {
expectedEnv := []string{
"gc.auto=0",
+ "maintenance.auto=0",
"core.autocrlf=input",
"core.usereplacerefs=false",
"core.fsync=objects,derived-metadata,reference",