mirror of
https://github.com/go-gitea/gitea
synced 2024-12-22 16:44:26 +00:00
Fix bug
This commit is contained in:
parent
1585b4d05a
commit
bb7c4464b8
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user