mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-06 21:07:06 +02:00
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:
1 parent
cd0ee35b3f
commit
f15fa9167a
24 files changed
+106
-283
No files matched your search
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user