]> source.dussan.org Git - gitea.git/commit
Clean-up HookPreReceive and restore functionality for pushing non-standard refs ...
authorzeripath <art27@cantab.net>
Thu, 16 Sep 2021 13:34:54 +0000 (14:34 +0100)
committerGitHub <noreply@github.com>
Thu, 16 Sep 2021 13:34:54 +0000 (15:34 +0200)
commit8de44d1995e73ec139ede5626466af1fce8c571a
tree1d47dbb69c70e2716785e804c39fcf59ba701559
parenta959ed99c2966dfc10ac41710eb74b7baf490bcf
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>
modules/web/route.go
routers/private/default_branch.go [new file with mode: 0644]
routers/private/hook.go [deleted file]
routers/private/hook_post_receive.go [new file with mode: 0644]
routers/private/hook_pre_receive.go [new file with mode: 0644]
routers/private/hook_proc_receive.go [new file with mode: 0644]
routers/private/hook_verification.go [new file with mode: 0644]
routers/private/internal.go
routers/private/internal_repo.go [new file with mode: 0644]