mirror of
https://github.com/go-gitea/gitea.git
synced 2025-12-11 08:44:40 +01:00
fix test
This commit is contained in:
parent
88be11d968
commit
c10c1b32db
@ -3072,6 +3072,7 @@ dashboard.sync_branch.started = Branches Sync started
|
||||
dashboard.sync_tag.started = Tags Sync started
|
||||
dashboard.rebuild_issue_indexer = Rebuild issue indexer
|
||||
dashboard.sync_repo_licenses = Sync repo licenses
|
||||
dashboard.cleanup_repo_lock_files = Clean up repository lock files
|
||||
|
||||
users.user_manage_panel = User Account Management
|
||||
users.new_account = Create User Account
|
||||
|
||||
@ -10,6 +10,8 @@ import (
|
||||
repo_model "code.gitea.io/gitea/models/repo"
|
||||
"code.gitea.io/gitea/modules/gitrepo"
|
||||
"code.gitea.io/gitea/modules/log"
|
||||
|
||||
"xorm.io/builder"
|
||||
)
|
||||
|
||||
func CleanupRepo(ctx context.Context) error {
|
||||
@ -17,7 +19,7 @@ func CleanupRepo(ctx context.Context) error {
|
||||
|
||||
if err := db.Iterate(
|
||||
ctx,
|
||||
nil,
|
||||
builder.Eq{"is_empty": false},
|
||||
func(ctx context.Context, repo *repo_model.Repository) error {
|
||||
select {
|
||||
case <-ctx.Done():
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user