Skip to content

Commit a73ccb4

Browse files
ChristopherHXlunny
andauthored
Update modules/git/repo_gpg.go
Co-authored-by: Lunny Xiao <[email protected]>
1 parent 3e992a0 commit a73ccb4

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)