Browse Source

Fix test (#10363)

for-closed-social
Lunny Xiao 4 years ago
committed by GitHub
parent
commit
8db20e807d
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      models/repo.go

+ 1
- 0
models/repo.go View File

@ -1619,6 +1619,7 @@ func DeleteRepository(doer *User, uid, repoID int64) error {
}
if err = sess.Commit(); err != nil {
sess.Close()
if len(deployKeys) > 0 {
// We need to rewrite the public keys because the commit failed
if err2 := RewriteAllPublicKeys(); err2 != nil {

Loading…
Cancel
Save