diff options
author | zeripath <art27@cantab.net> | 2021-08-17 09:24:47 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-17 10:24:47 +0200 |
commit | 25437672bf9fb48fc0a4b23e752cfed8d774ec4b (patch) | |
tree | 7198bdcf8bce6fe8efb1675b8abe660769dcea72 | |
parent | 0dc808212b9eb61b139703420683037db0e1e1db (diff) | |
download | gitea-25437672bf9fb48fc0a4b23e752cfed8d774ec4b.tar.gz gitea-25437672bf9fb48fc0a4b23e752cfed8d774ec4b.zip |
Restore functionality for pushing non-standard refs (Partial #16705) (#16706)
Partial Backport #16705
There was an inadvertent breaking change in #15629 meaning that notes refs and other
git extension refs will be automatically rejected.
This PR removes this incorrect forced rejection of non-standard refs.
Fix #16688
Signed-off-by: Andrew Thornton <art27@cantab.net>
-rw-r--r-- | routers/private/hook.go | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/routers/private/hook.go b/routers/private/hook.go index 9f5579b6ae..f936325152 100644 --- a/routers/private/hook.go +++ b/routers/private/hook.go @@ -392,11 +392,6 @@ func HookPreReceive(ctx *gitea_context.PrivateContext) { }) return } - } else { - log.Error("Unexpected ref: %s", refFullName) - ctx.JSON(http.StatusInternalServerError, private.Response{ - Err: fmt.Sprintf("Unexpected ref: %s", refFullName), - }) } } |