mirror of
https://github.com/go-gitea/gitea
synced 2025-01-09 10:56:03 +01:00
Fix bug
This commit is contained in:
parent
72f6e28f7f
commit
52639ffaa9
@ -419,7 +419,7 @@ func CreatePullRequest(ctx *context.APIContext) {
|
||||
}
|
||||
defer ci.Close()
|
||||
|
||||
if ci.IsPull() {
|
||||
if !ci.IsPull() {
|
||||
ctx.Error(http.StatusUnprocessableEntity, "Bad base or head refs", "Only support branch to branch comparison")
|
||||
return
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user