mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Fix test (#10363)
This commit is contained in:
		@@ -1619,6 +1619,7 @@ func DeleteRepository(doer *User, uid, repoID int64) error {
 | 
				
			|||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if err = sess.Commit(); err != nil {
 | 
						if err = sess.Commit(); err != nil {
 | 
				
			||||||
 | 
							sess.Close()
 | 
				
			||||||
		if len(deployKeys) > 0 {
 | 
							if len(deployKeys) > 0 {
 | 
				
			||||||
			// We need to rewrite the public keys because the commit failed
 | 
								// We need to rewrite the public keys because the commit failed
 | 
				
			||||||
			if err2 := RewriteAllPublicKeys(); err2 != nil {
 | 
								if err2 := RewriteAllPublicKeys(); err2 != nil {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user