diff options
author | Unknwon <u@gogs.io> | 2016-08-16 23:06:38 -0700 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2016-08-16 23:06:38 -0700 |
commit | a00c932bbc5a76ba9b0457d7d20cd1d5fc185b3d (patch) | |
tree | 8992a05aa3d7a72ea8e61047efc8cbab47944f33 /routers/repo/editor.go | |
parent | 6f9a95f83020e215ebe3942bd541da34791dd043 (diff) | |
download | gitea-a00c932bbc5a76ba9b0457d7d20cd1d5fc185b3d.tar.gz gitea-a00c932bbc5a76ba9b0457d7d20cd1d5fc185b3d.zip |
General code quality improvement
Diffstat (limited to 'routers/repo/editor.go')
-rw-r--r-- | routers/repo/editor.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/routers/repo/editor.go b/routers/repo/editor.go index 8b49a9e47f..aaacd8a807 100644 --- a/routers/repo/editor.go +++ b/routers/repo/editor.go @@ -332,7 +332,12 @@ func DeleteFilePost(ctx *context.Context, form auth.DeleteRepoFileForm) { return } - if err := ctx.Repo.Repository.DeleteRepoFile(ctx.User, ctx.Repo.CommitID, branchName, treeName, form.CommitSummary); err != nil { + if err := ctx.Repo.Repository.DeleteRepoFile(ctx.User, models.DeleteRepoFileOptions{ + LastCommitID: ctx.Repo.CommitID, + Branch: branchName, + TreePath: treeName, + Message: form.CommitSummary, + }); err != nil { ctx.Handle(500, "DeleteRepoFile", err) return } |