0
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-12-13 14:19:46 +01:00
gitea/routers
Jason Song a4bcfb8ef1
Detect broken git hooks (#29494)
Detect broken git hooks by checking if the commit id of branches in DB
is the same with the git repo.

It can help #29338 #28277 and maybe more issues.

Users could complain about actions, webhooks, and activities not
working, but they were not aware that it is caused by broken git hooks
unless they could see a warning.

<img width="1348" alt="image"
src="https://github.com/go-gitea/gitea/assets/9418365/2b92a46d-7f1d-4115-bef4-9f970bd695da">


It should be merged after #29493. Otherwise, users could see a ephemeral
warning after committing and opening the repo home page immediately.

And it also waits for #29495, since the doc link (the anchor part) will
be updated.

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: Giteabot <teabot@gitea.io>
2024-03-06 09:56:04 +00:00
..
api Skip email domain check when admins edit user emails (#29609) 2024-03-05 16:51:56 +00:00
common Fix incorrect cookie path for AppSubURL (#29534) 2024-03-03 00:14:12 +00:00
install Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
private Sync branches to DB immediately when handle git hook calling (#29493) 2024-03-06 16:47:52 +08:00
utils Improve user search display name (#29002) 2024-02-01 17:10:16 +00:00
web Detect broken git hooks (#29494) 2024-03-06 09:56:04 +00:00
init.go Move some asymkey functions to service layer (#28894) 2024-03-04 08:57:39 +00:00