aboutsummaryrefslogtreecommitdiff
path: root/routers/admin/admin.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2017-02-14 16:22:16 -0500
committerUnknwon <u@gogs.io>2017-02-14 16:22:16 -0500
commit039dc333670a7ece5b34a611b794d072b589ec65 (patch)
tree9b730972cd86444d439f4630a11d38202e952992 /routers/admin/admin.go
parent859009259a5d02a09b05094070b6db063bfc5a37 (diff)
git: delegate all server-side Git hooks (#1623)
Diffstat (limited to 'routers/admin/admin.go')
-rw-r--r--routers/admin/admin.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/routers/admin/admin.go b/routers/admin/admin.go
index 89482959..15d71bbe 100644
--- a/routers/admin/admin.go
+++ b/routers/admin/admin.go
@@ -121,7 +121,7 @@ const (
CLEAN_MISSING_REPOS
GIT_GC_REPOS
SYNC_SSH_AUTHORIZED_KEY
- SYNC_REPOSITORY_UPDATE_HOOK
+ SYNC_REPOSITORY_HOOKS
REINIT_MISSING_REPOSITORY
)
@@ -152,9 +152,9 @@ func Dashboard(ctx *context.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()
+ case SYNC_REPOSITORY_HOOKS:
+ success = ctx.Tr("admin.dashboard.resync_all_hooks_success")
+ err = models.SyncRepositoryHooks()
case REINIT_MISSING_REPOSITORY:
success = ctx.Tr("admin.dashboard.reinit_missing_repos_success")
err = models.ReinitMissingRepositories()