This should be a bug to check whether the repository is empty/archive/mirror. This part should be backport to v1.20 _Originally posted by @lunny in https://github.com/go-gitea/gitea/pull/22743#discussion_r1244921404_