Skip to content

Commit 3c363c5

Browse files
committed
add missing docs
1 parent 7859346 commit 3c363c5

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

modules/git/key.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33

44
package git
55

6+
// Based on https://git-scm.com/docs/git-config#Documentation/git-config.txt-gpgformat
67
const (
7-
// KeyTypeOpenPGP is the key type for GPG keys
8+
// KeyTypeOpenPGP is the key type for GPG keys, expected default of git cli
89
KeyTypeOpenPGP = "openpgp"
910
// KeyTypeSSH is the key type for SSH keys
1011
KeyTypeSSH = "ssh"

modules/setting/repository.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ var (
255255
SigningKey: "default",
256256
SigningName: "",
257257
SigningEmail: "",
258-
SigningFormat: "openpgp",
258+
SigningFormat: "openpgp", // git.KeyTypeOpenPGP
259259
InitialCommit: []string{"always"},
260260
CRUDActions: []string{"pubkey", "twofa", "parentsigned"},
261261
Merges: []string{"pubkey", "twofa", "basesigned", "commitssigned"},

0 commit comments

Comments
 (0)