Skip to content

Commit 2777d63

Browse files
Update modules/git/git.go
Co-authored-by: Steven Kriegler <[email protected]>
1 parent b0a3ef7 commit 2777d63

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/git/git.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ func InitOnceWithSync(ctx context.Context) (err error) {
231231

232232
// when git works with gnupg (commit signing), there should be a stable home for gnupg commands
233233
if _, ok := os.LookupEnv("GNUPGHOME"); !ok {
234-
_ = os.Setenv("GNUPGHOME", HomeDir())
234+
_ = os.Setenv("GNUPGHOME", filepath.Join(HomeDir(), ".gnupg"))
235235
}
236236

237237
// Since git wire protocol has been released from git v2.18

0 commit comments

Comments
 (0)