mirror of
https://github.com/go-gitea/gitea
synced 2025-01-10 05:35:59 +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()
|
defer ci.Close()
|
||||||
|
|
||||||
if ci.IsPull() {
|
if !ci.IsPull() {
|
||||||
ctx.Error(http.StatusUnprocessableEntity, "Bad base or head refs", "Only support branch to branch comparison")
|
ctx.Error(http.StatusUnprocessableEntity, "Bad base or head refs", "Only support branch to branch comparison")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user