Skip to content

Commit f42cd45

Browse files
authored
Call git.InitSimple for runRepoSyncReleases (#26396)
Fix #26394 Otherwise, the git module is not initialized and it doesn't respect the "timeout" config in app.ini
1 parent bfef7d4 commit f42cd45

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cmd/admin.go

+4
Original file line numberDiff line numberDiff line change
@@ -355,6 +355,10 @@ func runRepoSyncReleases(_ *cli.Context) error {
355355
return err
356356
}
357357

358+
if err := git.InitSimple(ctx); err != nil {
359+
return err
360+
}
361+
358362
log.Trace("Synchronizing repository releases (this may take a while)")
359363
for page := 1; ; page++ {
360364
repos, count, err := repo_model.SearchRepositoryByName(ctx, &repo_model.SearchRepoOptions{

0 commit comments

Comments
 (0)