浏览代码

Call git.InitSimple for runRepoSyncReleases (#26396) (#26450)

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>
tags/v1.20.3
Giteabot 9 个月前
父节点
当前提交
d6cf261be8
没有帐户链接到提交者的电子邮件
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4
    0
      cmd/admin.go

+ 4
- 0
cmd/admin.go 查看文件

@@ -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{

正在加载...
取消
保存