mirror of
https://gitee.com/gitea/gitea
synced 2025-11-04 00:20:25 +08:00
fix repo setting and delete repo
This commit is contained in:
@@ -307,6 +307,9 @@ func DeleteRepository(userId, repoId int64, userName string) (err error) {
|
||||
}
|
||||
|
||||
session := orm.NewSession()
|
||||
if err = session.Begin(); err != nil {
|
||||
return err
|
||||
}
|
||||
if _, err = session.Delete(&Repository{Id: repoId}); err != nil {
|
||||
session.Rollback()
|
||||
return err
|
||||
|
||||
Reference in New Issue
Block a user