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)
This commit is contained in:
Unknwon 2015-02-08 21:26:14 -05:00
parent cd0ee35b3f
commit f15fa9167a
24 changed files with 106 additions and 283 deletions

View file

@ -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 {