fixBrokenRepoUnits16961
![image](https://github.com/go-gitea/gitea/assets/18380374/508b3ceb-f53d-4d3b-a781-97c1542af1cb) (cherry picked from commit 08aec2c20adae8e6f04cac08566a8decd818e5cd)