aboutsummaryrefslogtreecommitdiffstats
path: root/routers/web/repo/cherry_pick.go
diff options
context:
space:
mode:
author6543 <6543@obermui.de>2022-04-25 20:45:18 +0200
committerGitHub <noreply@github.com>2022-04-25 20:45:18 +0200
commit1ebb30e41bf3b44404d7d03a5541729762c226b5 (patch)
treee549366c1166082c22784b85633a90d5dd56e91f /routers/web/repo/cherry_pick.go
parent7c164d5a918c2461bbdf2a1ef79a20908c3259be (diff)
downloadgitea-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.go2
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