diff options
Diffstat (limited to 'routers/web/repo/patch.go')
-rw-r--r-- | routers/web/repo/patch.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/web/repo/patch.go b/routers/web/repo/patch.go index e08cde89f2..2bb9dc1199 100644 --- a/routers/web/repo/patch.go +++ b/routers/web/repo/patch.go @@ -90,7 +90,7 @@ func NewDiffPatchPost(ctx *context.Context) { message += "\n\n" + form.CommitMessage } - if _, err := files.ApplyDiffPatch(ctx, ctx.Repo.Repository, ctx.User, &files.ApplyDiffPatchOptions{ + if _, err := files.ApplyDiffPatch(ctx, ctx.Repo.Repository, ctx.Doer, &files.ApplyDiffPatchOptions{ LastCommitID: form.LastCommit, OldBranch: ctx.Repo.BranchName, NewBranch: branchName, |