Fix Pr Create crash (#823)

Fix #822

Reviewed-on: https://gitea.com/gitea/tea/pulls/823
Reviewed-by: techknowlogick <techknowlogick@noreply.gitea.com>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-committed-by: Lunny Xiao <xiaolunwen@gmail.com>
This commit is contained in:
Lunny Xiao
2025-10-08 14:43:38 +00:00
committed by techknowlogick
parent 4f33146b70
commit 61d4e571a7

View File

@@ -33,7 +33,7 @@ func CreatePull(ctx *context.TeaContext) (err error) {
if ctx.LocalRepo != nil {
headOwner, headBranch, err = task.GetDefaultPRHead(ctx.LocalRepo)
if err == nil {
validator = nil
validator = func(string) error { return nil }
}
}