mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08: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:
		@@ -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