mirror of
1
Fork 0

Use default Git timeout when checking repo health (#33593)

(cherry picked from commit 8aede14b1d621cefa520c7bf6c838c866e1fabab)
This commit is contained in:
Zettat123 2025-02-14 23:13:56 +08:00 committed by Gusted
parent e932f89a13
commit 952dfac255
No known key found for this signature in database
GPG Key ID: FD821B732837125F
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ func registerRepoHealthCheck() {
RunAtStart: false,
Schedule: "@midnight",
},
Timeout: 60 * time.Second,
Timeout: time.Duration(setting.Git.Timeout.Default) * time.Second,
Args: []string{},
}, func(ctx context.Context, _ *user_model.User, config Config) error {
rhcConfig := config.(*RepoHealthCheckConfig)