diff options
author | Unknwon <joe2010xtmf@163.com> | 2014-11-30 02:26:29 -0500 |
---|---|---|
committer | Unknwon <joe2010xtmf@163.com> | 2014-11-30 02:26:29 -0500 |
commit | d75013a0e88a1f46fd16f5ba9344ff17ed84cd37 (patch) | |
tree | c153e256f1608c219e4717e3fab217c8aec1187b /routers/admin | |
parent | b6437b5a4c52bceb8032b00b474c2aa0ced69575 (diff) | |
download | gitea-d75013a0e88a1f46fd16f5ba9344ff17ed84cd37.tar.gz gitea-d75013a0e88a1f46fd16f5ba9344ff17ed84cd37.zip |
fix #580
Diffstat (limited to 'routers/admin')
-rw-r--r-- | routers/admin/admin.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/routers/admin/admin.go b/routers/admin/admin.go index db36696c77..99bae8819a 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 { |