mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 21:28:11 +09:00 
			
		
		
		
	fix #580
This commit is contained in:
		| @@ -117,6 +117,7 @@ const ( | ||||
| 	CLEAN_UNBIND_OAUTH AdminOperation = iota + 1 | ||||
| 	CLEAN_INACTIVATE_USER | ||||
| 	CLEAN_REPO_ARCHIVES | ||||
| 	GIT_GC_REPOS | ||||
| ) | ||||
|  | ||||
| func Dashboard(ctx *middleware.Context) { | ||||
| @@ -140,6 +141,9 @@ func Dashboard(ctx *middleware.Context) { | ||||
| 		case CLEAN_REPO_ARCHIVES: | ||||
| 			success = ctx.Tr("admin.dashboard.delete_repo_archives_success") | ||||
| 			err = models.DeleteRepositoryArchives() | ||||
| 		case GIT_GC_REPOS: | ||||
| 			success = ctx.Tr("admin.dashboard.git_gc_repos_success") | ||||
| 			err = models.GitGcRepos() | ||||
| 		} | ||||
|  | ||||
| 		if err != nil { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user