mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-01-10 23:52:16 +01:00
fix: do not rewrite when there are no keys
This commit is contained in:
parent
47fd9a421f
commit
a87e0d0e46
1 changed files with 4 additions and 0 deletions
|
@ -169,6 +169,10 @@ func updateSSHKeys(
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if len(sshKeys) == 0 {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
if asymkey_model.SynchronizePublicKeys(ctx, user, source.authSource, sshKeys) {
|
if asymkey_model.SynchronizePublicKeys(ctx, user, source.authSource, sshKeys) {
|
||||||
err = asymkey_model.RewriteAllPublicKeys(ctx)
|
err = asymkey_model.RewriteAllPublicKeys(ctx)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in a new issue