]> source.dussan.org Git - gitea.git/commit
Sync git hooks when config file path changed (#21619) (#21625)
authorJason Song <i@wolfogre.com>
Sun, 30 Oct 2022 03:16:09 +0000 (11:16 +0800)
committerGitHub <noreply@github.com>
Sun, 30 Oct 2022 03:16:09 +0000 (11:16 +0800)
commit7a2daae7c3a203a3716d653bfcdcdbb2fe48cb2d
treedf23d78b021b2aa4f99392893068ee822bbfbf90
parent5bc3fbd51173dc983b15e77291fda8111c4040d6
Sync git hooks when config file path changed (#21619) (#21625)

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: techknowlogick <techknowlogick@gitea.io>
modules/appstate/item_runtime.go
routers/init.go