404 on commits page when all files on branch deleted
Summary
When deleting all files in a branch, the /commits/:branch
page for that branch will 404
Steps to reproduce
- Create a new project
- Create a new README.md file
-
master
branch will be created - Create a new branch,
test-branch
from themaster
branch - Navigate to the Repository page
- Select
test-branch
in the branches dropdown - Delete the README.md file
- Still on the
test-branch
navigate to the Commits page
Example Project
What is the current bug behavior?
404 on the commits page
What is the expected correct behavior?
Commits deleting file for this branch should be displayed
Relevant logs and/or screenshots
(Paste any relevant logs - please use code blocks (```) to format console output, logs, and code as it's very hard to read otherwise.)
Output of checks
reproduced on GitLab.com v10.2.0-rc2
Possible fixes
(If you can, link to the line of code that might be responsible for the problem)