diff options
author | Zettat123 <zettat123@gmail.com> | 2025-02-14 23:13:56 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-02-14 15:13:56 +0000 |
commit | 8aede14b1d621cefa520c7bf6c838c866e1fabab (patch) | |
tree | dbb4b302652cd9f1f8c91e7db83c148933fcbed9 | |
parent | 70327d6a92ac973e6c48a0f3086fa8dccdcb8899 (diff) | |
download | gitea-8aede14b1d621cefa520c7bf6c838c866e1fabab.tar.gz gitea-8aede14b1d621cefa520c7bf6c838c866e1fabab.zip |
Use default Git timeout when checking repo health (#33593)
-rw-r--r-- | services/cron/tasks_basic.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/services/cron/tasks_basic.go b/services/cron/tasks_basic.go index fb5938745e..841981787d 100644 --- a/services/cron/tasks_basic.go +++ b/services/cron/tasks_basic.go @@ -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) |