File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -3072,6 +3072,7 @@ dashboard.sync_branch.started = Branches Sync started
30723072dashboard.sync_tag.started = Tags Sync started 
30733073dashboard.rebuild_issue_indexer = Rebuild issue indexer 
30743074dashboard.sync_repo_licenses = Sync repo licenses 
3075+ dashboard.cleanup_repo_lock_files = Clean up repository lock files 
30753076
30763077users.user_manage_panel = User Account Management 
30773078users.new_account = Create User Account 
Original file line number Diff line number Diff 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
1517func  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 ():
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments