You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitea/routers/web/repo
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>
11 months ago
..
actions remove util.OptionalBool and related functions (#29513) 11 months ago
setting Make wiki default branch name changable (#29603) 11 months ago
activity.go Move context from modules to services (#29440) 12 months ago
attachment.go Move context from modules to services (#29440) 12 months ago
blame.go Move context from modules to services (#29440) 12 months ago
branch.go remove util.OptionalBool and related functions (#29513) 11 months ago
cherry_pick.go Move context from modules to services (#29440) 12 months ago
code_frequency.go Move context from modules to services (#29440) 12 months ago
commit.go Move context from modules to services (#29440) 12 months ago
compare.go Move context from modules to services (#29440) 12 months ago
contributors.go Move context from modules to services (#29440) 12 months ago
download.go Move context from modules to services (#29440) 12 months ago
editor.go Make PR form use toast to show error message (#29545) 11 months ago
editor_test.go Move context from modules to services (#29440) 12 months ago
find.go Move context from modules to services (#29440) 12 months ago
githttp.go Move context from modules to services (#29440) 12 months ago
githttp_test.go Fix http protocol auth (#27875) 1 year ago
helper.go Move context from modules to services (#29440) 12 months ago
helper_test.go Make web context initialize correctly for different cases (#26726) 1 year ago
issue.go Add missing database transaction for new issue (#29490) 11 months ago
issue_content_history.go Fix issue & comment history bugs (#29525) 11 months ago
issue_dependency.go Move context from modules to services (#29440) 12 months ago
issue_label.go Move context from modules to services (#29440) 12 months ago
issue_label_test.go Move context from modules to services (#29440) 12 months ago
issue_lock.go Move context from modules to services (#29440) 12 months ago
issue_pin.go Move context from modules to services (#29440) 12 months ago
issue_stopwatch.go Move context from modules to services (#29440) 12 months ago
issue_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
issue_timetrack.go Move context from modules to services (#29440) 12 months ago
issue_watch.go Move context from modules to services (#29440) 12 months ago
main_test.go make writing main test easier (#27270) 1 year ago
middlewares.go Move context from modules to services (#29440) 12 months ago
migrate.go Move context from modules to services (#29440) 12 months ago
milestone.go remove util.OptionalBool and related functions (#29513) 11 months ago
packages.go remove util.OptionalBool and related functions (#29513) 11 months ago
patch.go Move context from modules to services (#29440) 12 months ago
projects.go Enable/disable owner and repo projects independently (#28805) 11 months ago
projects_test.go Move context from modules to services (#29440) 12 months ago
pull.go Add user blocking (#29028) 11 months ago
pull_review.go Fix 500 error when adding PR comment (#29622) 11 months ago
pull_review_test.go Move context from modules to services (#29440) 12 months ago
recent_commits.go Move context from modules to services (#29440) 12 months ago
release.go Fix a bug returning 404 when display a single tag with no release (#29466) 11 months ago
release_test.go Move context from modules to services (#29440) 12 months ago
render.go Move context from modules to services (#29440) 12 months ago
repo.go Add user blocking (#29028) 11 months ago
search.go Move context from modules to services (#29440) 12 months ago
topic.go Move context from modules to services (#29440) 12 months ago
treelist.go Move context from modules to services (#29440) 12 months ago
view.go Detect broken git hooks (#29494) 11 months ago
view_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
wiki.go Make wiki default branch name changable (#29603) 11 months ago
wiki_test.go Make wiki default branch name changable (#29603) 11 months ago