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.
forgejo/routers/private
zeripath 8de44d1995
Clean-up HookPreReceive and restore functionality for pushing non-standard refs (#16705)
* Clean-up HookPreReceive and restore functionality for pushing non-standard refs

There was an inadvertent breaking change in #15629 meaning that notes refs and other
git extension refs will be automatically rejected.

Further following #14295 and #15629 the pre-recieve hook code is untenably long and
too complex.

This PR refactors the hook code and removes the incorrect forced rejection of
non-standard refs.

Fix #16688

Signed-off-by: Andrew Thornton <art27@cantab.net>
3 years ago
..
default_branch.go Clean-up HookPreReceive and restore functionality for pushing non-standard refs (#16705) 3 years ago
hook_post_receive.go Clean-up HookPreReceive and restore functionality for pushing non-standard refs (#16705) 3 years ago
hook_pre_receive.go Clean-up HookPreReceive and restore functionality for pushing non-standard refs (#16705) 3 years ago
hook_proc_receive.go Clean-up HookPreReceive and restore functionality for pushing non-standard refs (#16705) 3 years ago
hook_verification.go Clean-up HookPreReceive and restore functionality for pushing non-standard refs (#16705) 3 years ago
internal.go Clean-up HookPreReceive and restore functionality for pushing non-standard refs (#16705) 3 years ago
internal_repo.go Clean-up HookPreReceive and restore functionality for pushing non-standard refs (#16705) 3 years ago
key.go Rename ctx.Form() to ctx.FormString() and move code into own file (#16571) 3 years ago
mail.go Add an abstract json layout to make it's easier to change json library (#16528) 3 years ago
manager.go Add an abstract json layout to make it's easier to change json library (#16528) 3 years ago
manager_unix.go Add bundle download for repository (#14538) 3 years ago
manager_windows.go Add bundle download for repository (#14538) 3 years ago
restore_repo.go Add an abstract json layout to make it's easier to change json library (#16528) 3 years ago
serv.go Rename context.Query to context.Form (#16562) 3 years ago
ssh_log.go add a new internal hook to save ssh log (#15787) 3 years ago