summaryrefslogtreecommitdiffstats
path: root/modules/system
diff options
context:
space:
mode:
authorJason Song <i@wolfogre.com>2022-10-29 00:53:08 +0800
committerGitHub <noreply@github.com>2022-10-28 19:53:08 +0300
commit60dc48dc0012ac06a07ca7abc9c8de97c2c5a867 (patch)
tree0fee5edc0af6db8443a765802f5300affde2879b /modules/system
parent100448a007707c049a769cb71cd170fcb5b64a25 (diff)
downloadgitea-60dc48dc0012ac06a07ca7abc9c8de97c2c5a867.tar.gz
gitea-60dc48dc0012ac06a07ca7abc9c8de97c2c5a867.zip
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>
Diffstat (limited to 'modules/system')
-rw-r--r--modules/system/item_runtime.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/system/item_runtime.go b/modules/system/item_runtime.go
index ef758a5675..e022a0daad 100644
--- a/modules/system/item_runtime.go
+++ b/modules/system/item_runtime.go
@@ -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