mirror of
https://gitea.com/gitea/tea.git
synced 2026-09-10 07:26:33 -04:00
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:
parent
4f33146b70
commit
61d4e571a7
|
|
@ -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 }
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue