Merge branch 'improve-instance-wide-ssh-signing' of https://github.com/christopherhx/gitea into pr/ChristopherHX/34341

This commit is contained in:
Christopher Homberger 2025-05-11 11:05:15 +02:00
commit bafd8ece83

View File

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