mirror of
https://github.com/go-gitea/gitea.git
synced 2024-11-04 08:17:24 -05:00
fix public will not be reused as public key after deleting as deploy key (#5671)
This commit is contained in:
parent
530c2b8ad8
commit
0b84b5ee49
@ -844,6 +844,11 @@ func DeleteDeployKey(doer *User, id int64) error {
|
||||
if err = deletePublicKeys(sess, key.KeyID); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
// after deleted the public keys, should rewrite the public keys file
|
||||
if err = rewriteAllPublicKeys(sess); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
return sess.Commit()
|
||||
|
Loading…
Reference in New Issue
Block a user