Skip to content

Commit c10c1b3

Browse files
committed
fix test
1 parent 88be11d commit c10c1b3

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

options/locale/locale_en-US.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3072,6 +3072,7 @@ dashboard.sync_branch.started = Branches Sync started
30723072
dashboard.sync_tag.started = Tags Sync started
30733073
dashboard.rebuild_issue_indexer = Rebuild issue indexer
30743074
dashboard.sync_repo_licenses = Sync repo licenses
3075+
dashboard.cleanup_repo_lock_files = Clean up repository lock files
30753076
30763077
users.user_manage_panel = User Account Management
30773078
users.new_account = Create User Account

services/repository/cleanup.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,16 @@ import (
1010
repo_model "code.gitea.io/gitea/models/repo"
1111
"code.gitea.io/gitea/modules/gitrepo"
1212
"code.gitea.io/gitea/modules/log"
13+
14+
"xorm.io/builder"
1315
)
1416

1517
func CleanupRepo(ctx context.Context) error {
1618
log.Trace("Doing: CleanupRepo")
1719

1820
if err := db.Iterate(
1921
ctx,
20-
nil,
22+
builder.Eq{"is_empty": false},
2123
func(ctx context.Context, repo *repo_model.Repository) error {
2224
select {
2325
case <-ctx.Done():

0 commit comments

Comments
 (0)