diff options
author | a1012112796 <1012112796@qq.com> | 2021-01-29 16:57:45 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-29 16:57:45 +0800 |
commit | f19da14c34f3a86a77b45de77f48109fa5edcf78 (patch) | |
tree | 4fff1a4533cebf812334327e2bfaf9743a90bb64 /modules/repofiles/upload.go | |
parent | f761c82c94f27193bfb6cd0648e11e491eda4880 (diff) | |
download | gitea-f19da14c34f3a86a77b45de77f48109fa5edcf78.tar.gz gitea-f19da14c34f3a86a77b45de77f48109fa5edcf78.zip |
enhancement: add signoff option in commit form (#14516)
Signed-off-by: a1012112796 <1012112796@qq.com>
Diffstat (limited to 'modules/repofiles/upload.go')
-rw-r--r-- | modules/repofiles/upload.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/repofiles/upload.go b/modules/repofiles/upload.go index e3ec48ec0f..c261e188c1 100644 --- a/modules/repofiles/upload.go +++ b/modules/repofiles/upload.go @@ -24,6 +24,7 @@ type UploadRepoFileOptions struct { TreePath string Message string Files []string // In UUID format. + Signoff bool } type uploadInfo struct { @@ -143,7 +144,7 @@ func UploadRepoFiles(repo *models.Repository, doer *models.User, opts *UploadRep committer := doer // Now commit the tree - commitHash, err := t.CommitTree(author, committer, treeHash, opts.Message) + commitHash, err := t.CommitTree(author, committer, treeHash, opts.Message, opts.Signoff) if err != nil { return err } |