aboutsummaryrefslogtreecommitdiffstats
path: root/worktree_commit.go
diff options
context:
space:
mode:
Diffstat (limited to 'worktree_commit.go')
-rw-r--r--worktree_commit.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/worktree_commit.go b/worktree_commit.go
index ad7880a..b83bf0c 100644
--- a/worktree_commit.go
+++ b/worktree_commit.go
@@ -1,6 +1,7 @@
package git
import (
+ "bytes"
"path"
"strings"
@@ -117,7 +118,7 @@ func (w *Worktree) buildCommitSignature(commit *object.Commit, signKey *openpgp.
if err != nil {
return "", err
}
- var b strings.Builder
+ var b bytes.Buffer
if err := openpgp.ArmoredDetachSign(&b, signKey, r, nil); err != nil {
return "", err
}