1
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-11-02 08:57:32 -04:00
gitea/routers/private
Jason Song 5bdf805e05
Sync branches to DB immediately when handle git hook calling (#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-06 16:47:52 +08:00
..
tests/repos Fix verifyCommits error when push a new branch (#26664) 2023-08-30 02:27:53 +00:00
actions.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
default_branch.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
hook_post_receive.go Sync branches to DB immediately when handle git hook calling (#29493) 2024-03-06 16:47:52 +08:00
hook_pre_receive.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
hook_proc_receive.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
hook_verification_test.go Adjust object format interface (#28469) 2023-12-17 11:56:08 +00:00
hook_verification.go Improve ObjectFormat interface (#28496) 2023-12-19 07:20:47 +00:00
internal_repo.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
internal.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
key.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
mail.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
main_test.go make writing main test easier (#27270) 2023-09-28 01:38:53 +00:00
manager_process.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
manager_unix.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
manager_windows.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
manager.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
restore_repo.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
serv.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
ssh_log.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00