Skip to content

Commit bafd8ec

Browse files
committed
Merge branch 'improve-instance-wide-ssh-signing' of https://github.com/christopherhx/gitea into pr/ChristopherHX/34341
2 parents 3123281 + a73ccb4 commit bafd8ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/git/repo_gpg.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414

1515
// LoadPublicKeyContent will load the key from gpg
1616
func (gpgSettings *GPGSettings) LoadPublicKeyContent() error {
17-
if gpgSettings.Format == KeyTypeOpenPGP {
17+
if gpgSettings.Format == KeyTypeSSH {
1818
content, err := os.ReadFile(gpgSettings.KeyID)
1919
if err != nil {
2020
return fmt.Errorf("unable to read SSH public key file: %s, %w", gpgSettings.KeyID, err)

0 commit comments

Comments
 (0)