1
1
mirror of https://github.com/go-gitea/gitea synced 2024-12-22 16:44:26 +00:00
This commit is contained in:
Lunny Xiao 2024-12-16 16:23:29 -08:00
parent 1585b4d05a
commit bb7c4464b8
No known key found for this signature in database
GPG Key ID: C3B7C91B632F738A

View File

@ -1133,7 +1133,7 @@ func parseCompareInfo(ctx *context.APIContext, form api.CreatePullRequestOption)
headRepo, err := repo_model.GetForkedRepo(ctx, headUser.ID, baseRepo.ID)
if err != nil && !repo_model.IsErrRepoNotExist(err) {
ctx.Error(http.StatusInternalServerError, "GetForkedRepo", err)
return nil, nil, nil, "", ""
return nil, nil
}
if headRepo == nil && !isSameRepo {
err = baseRepo.GetBaseRepo(ctx)