mirror of
https://github.com/go-gitea/gitea
synced 2025-07-12 13:37:20 +00: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