]> source.dussan.org Git - gitea.git/commit
Sync git hooks when config file path changed (#21619) (#21626)
authorJason Song <i@wolfogre.com>
Sun, 30 Oct 2022 03:17:11 +0000 (11:17 +0800)
committerGitHub <noreply@github.com>
Sun, 30 Oct 2022 03:17:11 +0000 (11:17 +0800)
commite4a10f8c78963d8d36a735e53fca55c193c2cc2e
tree92a77ff364417ad20c2574030e981e069e4a88e9
parent6dba648e5d94084bc37a824fe9909529e1d8dafa
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>
modules/system/item_runtime.go
routers/init.go