diff options
author | 6543 <6543@obermui.de> | 2022-04-25 20:45:18 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-25 20:45:18 +0200 |
commit | 1ebb30e41bf3b44404d7d03a5541729762c226b5 (patch) | |
tree | e549366c1166082c22784b85633a90d5dd56e91f /routers/web/repo/cherry_pick.go | |
parent | 7c164d5a918c2461bbdf2a1ef79a20908c3259be (diff) | |
download | gitea-1ebb30e41bf3b44404d7d03a5541729762c226b5.tar.gz gitea-1ebb30e41bf3b44404d7d03a5541729762c226b5.zip |
Pass gitRepo down to GetRawDiff, since its used for main repo and wiki (#19461)
as per https://github.com/go-gitea/gitea/pull/19449#issuecomment-1105283931
pass gitRepo down to GetRawDiff, since its used for main repo and wiki
Diffstat (limited to 'routers/web/repo/cherry_pick.go')
-rw-r--r-- | routers/web/repo/cherry_pick.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/web/repo/cherry_pick.go b/routers/web/repo/cherry_pick.go index 926361ccd7..6667d27410 100644 --- a/routers/web/repo/cherry_pick.go +++ b/routers/web/repo/cherry_pick.go @@ -151,7 +151,7 @@ func CherryPickPost(ctx *context.Context) { return } } else { - if err := git.GetRawDiff(ctx, ctx.Repo.Repository.RepoPath(), sha, git.RawDiffType("patch"), buf); err != nil { + if err := git.GetRawDiff(ctx.Repo.GitRepo, sha, git.RawDiffType("patch"), buf); err != nil { if git.IsErrNotExist(err) { ctx.NotFound("GetRawDiff", errors.New("commit "+ctx.Params(":sha")+" does not exist.")) return |