Skip to content

Commit

Permalink
Fix test (go-gitea#10363)
Browse files Browse the repository at this point in the history
  • Loading branch information
lunny authored Feb 19, 2020
1 parent 17445bb commit 8db20e8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions models/repo.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 8db20e8

Please sign in to comment.