1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-22 18:28:37 +00:00

Add rootRepo and ownForkRepo

This commit is contained in:
Lunny Xiao
2024-12-12 00:37:51 -08:00
parent 52639ffaa9
commit a3eb356f7a
5 changed files with 116 additions and 48 deletions

View File

@@ -61,7 +61,7 @@ func CompareDiff(ctx *context.APIContext) {
pathParam := ctx.PathParam("*")
baseRepo := ctx.Repo.Repository
ci, err := common.ParseComparePathParams(ctx, pathParam, baseRepo, ctx.Repo.GitRepo)
ci, err := common.ParseComparePathParams(ctx, pathParam, baseRepo, ctx.Repo.GitRepo, ctx.Doer)
if err != nil {
switch {
case user_model.IsErrUserNotExist(err):