summaryrefslogtreecommitdiffstats
path: root/routers/admin/admin.go
diff options
context:
space:
mode:
authorUnknwon <joe2010xtmf@163.com>2015-02-08 21:26:14 -0500
committerUnknwon <joe2010xtmf@163.com>2015-02-08 21:26:14 -0500
commitf15fa9167ade8262bed437451585d319f12d1182 (patch)
tree1f6e32e4377d0c09fd3a57a66caf5098e0c16c97 /routers/admin/admin.go
parentcd0ee35b3f887cc4ab6ba16cc2d955bfae607678 (diff)
downloadgitea-f15fa9167ade8262bed437451585d319f12d1182.tar.gz
gitea-f15fa9167ade8262bed437451585d319f12d1182.zip
cmd: code fix for #905
- routers/admin: add rewrite update hook operation - conf/locale: update locale file due to ini behavior changes - cmd/cert_stub.go: remove useless code - cmd/fix.go: no longer need fix command(at least now)
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 ea50d5c4cb..d54bb629fd 100644
--- a/routers/admin/admin.go
+++ b/routers/admin/admin.go
@@ -119,6 +119,7 @@ const (
CLEAN_REPO_ARCHIVES
GIT_GC_REPOS
SYNC_SSH_AUTHORIZED_KEY
+ SYNC_REPOSITORY_UPDATE_HOOK
)
func Dashboard(ctx *middleware.Context) {
@@ -148,6 +149,9 @@ func Dashboard(ctx *middleware.Context) {
case SYNC_SSH_AUTHORIZED_KEY:
success = ctx.Tr("admin.dashboard.resync_all_sshkeys_success")
err = models.RewriteAllPublicKeys()
+ case SYNC_REPOSITORY_UPDATE_HOOK:
+ success = ctx.Tr("admin.dashboard.resync_all_update_hooks_success")
+ err = models.RewriteRepositoryUpdateHook()
}
if err != nil {