From d75013a0e88a1f46fd16f5ba9344ff17ed84cd37 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Sun, 30 Nov 2014 02:26:29 -0500 Subject: fix #580 --- routers/admin/admin.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'routers') diff --git a/routers/admin/admin.go b/routers/admin/admin.go index db36696c..99bae881 100644 --- a/routers/admin/admin.go +++ b/routers/admin/admin.go @@ -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 { -- cgit v1.2.3