summaryrefslogtreecommitdiffstats
path: root/routers/repo/delete.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/repo/delete.go')
-rw-r--r--routers/repo/delete.go9
1 files changed, 2 insertions, 7 deletions
diff --git a/routers/repo/delete.go b/routers/repo/delete.go
index 0aec7f1a1d..a0c615a6d7 100644
--- a/routers/repo/delete.go
+++ b/routers/repo/delete.go
@@ -32,13 +32,8 @@ func DeleteFilePost(ctx *context.Context, form auth.DeleteRepoFileForm) {
log.Error(4, "branch.GetCommit(): %v", err)
} else {
pc := &models.PushCommits{
- Len: 1,
- Commits: []*models.PushCommit{&models.PushCommit{
- commit.ID.String(),
- commit.Message(),
- commit.Author.Email,
- commit.Author.Name,
- }},
+ Len: 1,
+ Commits: []*models.PushCommit{models.CommitToPushCommit(commit)},
}
oldCommitID := ctx.Repo.CommitID
newCommitID := commit.ID.String()