Backport #26396 by @wxiaoguang Fix #26394 Otherwise, the git module is not initialized and it doesn't respect the "timeout" config in app.ini Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
This commit is contained in:
parent
7c555b2231
commit
d6cf261be8
1 changed files with 4 additions and 0 deletions
|
@ -348,6 +348,10 @@ func runRepoSyncReleases(_ *cli.Context) error {
|
|||
return err
|
||||
}
|
||||
|
||||
if err := git.InitSimple(ctx); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
log.Trace("Synchronizing repository releases (this may take a while)")
|
||||
for page := 1; ; page++ {
|
||||
repos, count, err := repo_model.SearchRepositoryByName(ctx, &repo_model.SearchRepoOptions{
|
||||
|
|
Loading…
Add table
Reference in a new issue