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/private
Lunny Xiao df7f1c2ead
Fix protected branch files detection on pre_receive hook (#31778)
Fix #31738

When pushing a new branch, the old commit is zero. Most git commands
cannot recognize the zero commit id. To get the changed files in the
push, we need to get the first diverge commit of this branch. In most
situations, we could check commits one by one until one commit is
contained by another branch. Then we will think that commit is the
diverge point.

And in a pre-receive hook, this will be more difficult because all
commits haven't been merged and they actually stored in a temporary
place by git. So we need to bring some envs to let git know the commit
exist.
6 months ago
..
tests/repos Fix verifyCommits error when push a new branch (#26664) 1 year ago
actions.go Clean up log messages (#30313) 10 months ago
default_branch.go Refactor names (#31405) 8 months ago
hook_post_receive.go Refactor names (#31405) 8 months ago
hook_post_receive_test.go Move database operations of merging a pull request to post receive hook and add a transaction (#30805) 9 months ago
hook_pre_receive.go Fix protected branch files detection on pre_receive hook (#31778) 6 months ago
hook_proc_receive.go Make sure git version&feature are always prepared (#30877) 9 months ago
hook_verification.go Clean up log messages (#30313) 10 months ago
hook_verification_test.go Adjust object format interface (#28469) 1 year ago
internal.go Refactor names (#31405) 8 months ago
internal_repo.go Refactor names (#31405) 8 months ago
key.go Refactor names (#31405) 8 months ago
mail.go Clean up log messages (#30313) 10 months ago
main_test.go make writing main test easier (#27270) 1 year ago
manager.go Refactor names (#31405) 8 months ago
manager_process.go Move context from modules to services (#29440) 11 months ago
manager_unix.go Move context from modules to services (#29440) 11 months ago
manager_windows.go Move context from modules to services (#29440) 11 months ago
restore_repo.go Move context from modules to services (#29440) 11 months ago
serv.go Refactor names (#31405) 8 months ago
ssh_log.go Move context from modules to services (#29440) 11 months ago