Skip to content

Commit f4064f8

Browse files
Zettat123GiteaBot
authored andcommitted
Use default Git timeout when checking repo health (go-gitea#33593)
1 parent d17f8ff commit f4064f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

services/cron/tasks_basic.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ func registerRepoHealthCheck() {
5454
RunAtStart: false,
5555
Schedule: "@midnight",
5656
},
57-
Timeout: 60 * time.Second,
57+
Timeout: time.Duration(setting.Git.Timeout.Default) * time.Second,
5858
Args: []string{},
5959
}, func(ctx context.Context, _ *user_model.User, config Config) error {
6060
rhcConfig := config.(*RepoHealthCheckConfig)

0 commit comments

Comments
 (0)