Whilst looking at #9708 I've noticed that there is an issue with: https://github.com/go-gitea/gitea/blob/1751d5fcf200b7d78ec5543fa620174c69d2746a/modules/repofiles/delete.go#L49 This should be ```go if err != nil && !git.IsErrNotExist(err) { ``` however this breaks several tests which need to also be fixed.