diff options
author | Jason Song <i@wolfogre.com> | 2022-10-30 04:17:11 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-30 04:17:11 +0100 |
commit | e4a10f8c78963d8d36a735e53fca55c193c2cc2e (patch) | |
tree | 92a77ff364417ad20c2574030e981e069e4a88e9 /modules | |
parent | Use CSS color-scheme instead of invert (#21616) (#21623) (diff) | |
download | forgejo-e4a10f8c78963d8d36a735e53fca55c193c2cc2e.tar.xz forgejo-e4a10f8c78963d8d36a735e53fca55c193c2cc2e.zip |
Sync git hooks when config file path changed (#21619) (#21626)
Backport #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>
Co-authored-by: zeripath <art27@cantab.net>
Diffstat (limited to 'modules')
-rw-r--r-- | modules/system/item_runtime.go | 3 |
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 |