aboutsummaryrefslogtreecommitdiffstats
path: root/routers/repo/editor.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/repo/editor.go')
-rw-r--r--routers/repo/editor.go7
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
}