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 'internal/git2go/revert.go')
-rw-r--r--internal/git2go/revert.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/git2go/revert.go b/internal/git2go/revert.go
index 7442e1566..4c42e706d 100644
--- a/internal/git2go/revert.go
+++ b/internal/git2go/revert.go
@@ -26,9 +26,13 @@ type RevertCommand struct {
Revert string
// Mainline is the parent to be considered the mainline
Mainline uint
+ // SigningKey is a path to the key to sign commit using OpenPGP
+ SigningKey string
}
// Revert reverts a commit via gitaly-git2go.
func (b *Executor) Revert(ctx context.Context, repo repository.GitRepo, r RevertCommand) (git.ObjectID, error) {
+ r.SigningKey = b.signingKey
+
return b.runWithGob(ctx, repo, "revert", r)
}