forgejo/routers/private
Jason Song 286d09203f Sync branches to DB immediately when handle git hook calling (gitea#29493)
Unlike other async processing in the queue, we should sync branches to
the DB immediately when handling git hook calling. If it fails, users
can see the error message in the output of the git command.

It can avoid potential inconsistency issues, and help #29494.

---------

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2024-03-18 17:38:01 +01:00
..
tests/repos
actions.go Move context from modules to services (#29440) 2024-03-06 12:10:43 +08:00
default_branch.go Move get/set default branch from git package to gitrepo package to hide repopath (#29126) 2024-03-11 23:36:59 +07:00
hook_post_receive.go Sync branches to DB immediately when handle git hook calling (gitea#29493) 2024-03-18 17:38:01 +01:00
hook_pre_receive.go Move context from modules to services (#29440) 2024-03-06 12:10:43 +08:00
hook_proc_receive.go Move context from modules to services (#29440) 2024-03-06 12:10:43 +08:00
hook_verification.go Improve ObjectFormat interface (#28496) 2023-12-19 07:20:47 +00:00
hook_verification_test.go Adjust object format interface (#28469) 2023-12-17 11:56:08 +00:00
internal.go Move context from modules to services (#29440) 2024-03-06 12:10:43 +08:00
internal_repo.go Move context from modules to services (#29440) 2024-03-06 12:10:43 +08:00
key.go Move context from modules to services (#29440) 2024-03-06 12:10:43 +08:00
mail.go Move context from modules to services (#29440) 2024-03-06 12:10:43 +08:00
main_test.go
manager.go Move context from modules to services (#29440) 2024-03-06 12:10:43 +08:00
manager_process.go Move context from modules to services (#29440) 2024-03-06 12:10:43 +08:00
manager_unix.go Move context from modules to services (#29440) 2024-03-06 12:10:43 +08:00
manager_windows.go Move context from modules to services (#29440) 2024-03-06 12:10:43 +08:00
restore_repo.go Move context from modules to services (#29440) 2024-03-06 12:10:43 +08:00
serv.go Move context from modules to services (#29440) 2024-03-06 12:10:43 +08:00
ssh_log.go Move context from modules to services (#29440) 2024-03-06 12:10:43 +08:00