diff options
Diffstat (limited to 'services/repository/files/patch.go')
-rw-r--r-- | services/repository/files/patch.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/services/repository/files/patch.go b/services/repository/files/patch.go index 09a8b3ea0c..904512f3f3 100644 --- a/services/repository/files/patch.go +++ b/services/repository/files/patch.go @@ -164,9 +164,9 @@ func ApplyDiffPatch(ctx context.Context, repo *repo_model.Repository, doer *user // Now commit the tree var commitHash string if opts.Dates != nil { - commitHash, err = t.CommitTreeWithDate(author, committer, treeHash, message, opts.Signoff, opts.Dates.Author, opts.Dates.Committer) + commitHash, err = t.CommitTreeWithDate("HEAD", author, committer, treeHash, message, opts.Signoff, opts.Dates.Author, opts.Dates.Committer) } else { - commitHash, err = t.CommitTree(author, committer, treeHash, message, opts.Signoff) + commitHash, err = t.CommitTree("HEAD", author, committer, treeHash, message, opts.Signoff) } if err != nil { return nil, err |