aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZettat123 <zettat123@gmail.com>2025-02-14 23:13:56 +0800
committerGitHub <noreply@github.com>2025-02-14 15:13:56 +0000
commit8aede14b1d621cefa520c7bf6c838c866e1fabab (patch)
treedbb4b302652cd9f1f8c91e7db83c148933fcbed9
parent70327d6a92ac973e6c48a0f3086fa8dccdcb8899 (diff)
downloadgitea-8aede14b1d621cefa520c7bf6c838c866e1fabab.tar.gz
gitea-8aede14b1d621cefa520c7bf6c838c866e1fabab.zip
Use default Git timeout when checking repo health (#33593)
-rw-r--r--services/cron/tasks_basic.go2
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)