Restore functionality for pushing non-standard refs (Partial ) ()

Partial Backport 

There was an inadvertent breaking change in  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 

Signed-off-by: Andrew Thornton <art27@cantab.net>
This commit is contained in:
zeripath 2021-08-17 09:24:47 +01:00 committed by GitHub
parent 0dc808212b
commit 25437672bf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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),
})
}
}