Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/gitaly-git2go/submodule.go')
-rw-r--r--cmd/gitaly-git2go/submodule.go18
1 files changed, 10 insertions, 8 deletions
diff --git a/cmd/gitaly-git2go/submodule.go b/cmd/gitaly-git2go/submodule.go
index 0e52ee3f4..4596a5ff9 100644
--- a/cmd/gitaly-git2go/submodule.go
+++ b/cmd/gitaly-git2go/submodule.go
@@ -121,14 +121,16 @@ func (cmd *submoduleSubcommand) run(request git2go.SubmoduleCommand) (*git2go.Su
request.AuthorDate,
),
)
- newCommitOID, err := repo.CreateCommit(
- "", // caller should update branch with hooks
- &committer,
- &committer,
- request.Message,
- newTree,
- startCommit,
- )
+
+ newCommitOID, err := git2goutil.NewCommitSubmitter(repo, request.SigningKey).
+ Commit(
+ &committer,
+ &committer,
+ git.MessageEncodingUTF8,
+ request.Message,
+ newTree,
+ startCommit,
+ )
if err != nil {
return nil, fmt.Errorf(
"%s: %w",