summaryrefslogtreecommitdiffstats
path: root/routers/admin/admin.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2016-02-04 12:51:00 -0500
committerUnknwon <u@gogs.io>2016-02-04 12:51:00 -0500
commit04be8c0de5295f57e06e152e56c481b29b1076e5 (patch)
treeb4b960ce14c151ae199d4c7f99d9718f10e8503b /routers/admin/admin.go
parenta47baa1b7ae08fbcc6946b6c168e69cd4c9894b4 (diff)
downloadgitea-04be8c0de5295f57e06e152e56c481b29b1076e5.tar.gz
gitea-04be8c0de5295f57e06e152e56c481b29b1076e5.zip
#2554 reinitialize all repos from the db
- Update locales
Diffstat (limited to 'routers/admin/admin.go')
-rw-r--r--routers/admin/admin.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/routers/admin/admin.go b/routers/admin/admin.go
index f530cd43cb..5d665adbad 100644
--- a/routers/admin/admin.go
+++ b/routers/admin/admin.go
@@ -120,6 +120,7 @@ const (
GIT_GC_REPOS
SYNC_SSH_AUTHORIZED_KEY
SYNC_REPOSITORY_UPDATE_HOOK
+ REINIT_MISSING_REPOSITORY
)
func Dashboard(ctx *middleware.Context) {
@@ -152,6 +153,9 @@ func Dashboard(ctx *middleware.Context) {
case SYNC_REPOSITORY_UPDATE_HOOK:
success = ctx.Tr("admin.dashboard.resync_all_update_hooks_success")
err = models.RewriteRepositoryUpdateHook()
+ case REINIT_MISSING_REPOSITORY:
+ success = ctx.Tr("admin.dashboard.reinit_missing_repos_success")
+ err = models.ReinitMissingRepositories()
}
if err != nil {