1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-15 23:17:19 +00:00

Sync git hooks when config file path changed (#21619)

A patch to #17335.

Just like AppPath, Gitea writes its own CustomConf into git hook scripts
too. If Gitea's CustomConf changes, then the git push may fail.

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
This commit is contained in:
Jason Song
2022-10-29 00:53:08 +08:00
committed by GitHub
parent 100448a007
commit 60dc48dc00
2 changed files with 15 additions and 4 deletions

View File

@@ -6,7 +6,8 @@ package system
// RuntimeState contains app state for runtime, and we can save remote version for update checker here in future
type RuntimeState struct {
LastAppPath string `json:"last_app_path"`
LastAppPath string `json:"last_app_path"`
LastCustomConf string `json:"last_custom_conf"`
}
// Name returns the item name