mirror of
https://github.com/go-gitea/gitea.git
synced 2025-06-05 00:01:37 -04:00
Merge branch 'improve-instance-wide-ssh-signing' of https://github.com/christopherhx/gitea into pr/ChristopherHX/34341
This commit is contained in:
commit
bafd8ece83
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user