mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	This commit is contained in:
		
				
					committed by
					
						
						techknowlogick
					
				
			
			
				
	
			
			
			
						parent
						
							30560b0f9b
						
					
				
				
					commit
					1c4293b37f
				
			@@ -826,6 +826,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()
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user