After force push to default branch, old README is still displayed
Summary
When the default branch of a project has a README and gets overwritten by force push with a branch without a README, the old README is still displayed on the project page.
Steps to reproduce
- create empty project
- create README.md
- make default branch non-protected
- create new branch without README.md
- force push to default branch
What is the current bug behavior?
- old README.md is still visible on project page (https://gitlab.com/reproduction-group/readme-force-push, screenshot)
- clicking on edit icon there leads to 404 (https://gitlab.com/reproduction-group/readme-force-push/edit/master/README.md)
- repository → files does not contain README.md (https://gitlab.com/reproduction-group/readme-force-push/tree/master, screenshot)
What is the expected correct behavior?
- no README.md is displayed (https://gitlab.com/reproduction-group/no-readme, screenshot)