mirror of
https://github.com/go-gitea/gitea
synced 2025-07-30 06:08:35 +00:00
Fix bug
This commit is contained in:
@@ -1133,7 +1133,7 @@ func parseCompareInfo(ctx *context.APIContext, form api.CreatePullRequestOption)
|
|||||||
headRepo, err := repo_model.GetForkedRepo(ctx, headUser.ID, baseRepo.ID)
|
headRepo, err := repo_model.GetForkedRepo(ctx, headUser.ID, baseRepo.ID)
|
||||||
if err != nil && !repo_model.IsErrRepoNotExist(err) {
|
if err != nil && !repo_model.IsErrRepoNotExist(err) {
|
||||||
ctx.Error(http.StatusInternalServerError, "GetForkedRepo", err)
|
ctx.Error(http.StatusInternalServerError, "GetForkedRepo", err)
|
||||||
return nil, nil, nil, "", ""
|
return nil, nil
|
||||||
}
|
}
|
||||||
if headRepo == nil && !isSameRepo {
|
if headRepo == nil && !isSameRepo {
|
||||||
err = baseRepo.GetBaseRepo(ctx)
|
err = baseRepo.GetBaseRepo(ctx)
|
||||||
|
Reference in New Issue
Block a user