diff options
Diffstat (limited to 'internal/git2go/revert.go')
-rw-r--r-- | internal/git2go/revert.go | 4 |
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) } |