1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-15 15:07:20 +00:00

Only warn on errors in deleting LFS orphaned files during repo deletion (#7213)

This commit is contained in:
zeripath
2019-06-15 23:20:29 +01:00
committed by GitHub
parent 0323122fd7
commit cde410521c
2 changed files with 2 additions and 5 deletions

View File

@ -1882,10 +1882,7 @@ func DeleteRepository(doer *User, uid, repoID int64) error {
}
oidPath := filepath.Join(v.Oid[0:2], v.Oid[2:4], v.Oid[4:len(v.Oid)])
err = os.Remove(filepath.Join(setting.LFS.ContentPath, oidPath))
if err != nil {
return err
}
removeAllWithNotice(sess, "Delete orphaned LFS file", oidPath)
}
if _, err := sess.Delete(&LFSMetaObject{RepositoryID: repoID}); err != nil {