]> source.dussan.org Git - gitea.git/commit
Performance optimization for git push (#30104) (#30348)
authorGiteabot <teabot@gitea.io>
Tue, 9 Apr 2024 06:34:30 +0000 (14:34 +0800)
committerGitHub <noreply@github.com>
Tue, 9 Apr 2024 06:34:30 +0000 (06:34 +0000)
commit82992cf32dbbdf974cc45db996f74246baa961a5
treeabbd5ec3cf9c2c0341eed0cb389d8cca0a2cf019
parent4c8c10b3dff864c935f02df8796937e2594ecd5e
Performance optimization for git push (#30104) (#30348)

Backport #30104 by @lunny

Agit returned result should be from `ProcReceive` hook but not
`PostReceive` hook. Then for all non-agit pull requests, it will not
check the pull requests for every pushing `refs/pull/%d/head`.

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
cmd/hook.go
modules/private/hook.go
routers/private/hook_post_receive.go
services/agit/agit.go
tests/integration/git_push_test.go