Projects with an empty repository still show "create merge request" button on issues
Summary
When viewing issues in projects with an empty repository, a button is shown for "Create merge request" which has two items that probably want to refer to the default branch name, but ends up empty (note the from ''
:
When clicking the "create merge request" button, the repository is created with a master branch, a new branch is created which consequently is added to a WIP merge request which is empty.
Steps to reproduce
- Start a project without pushing to it's repository
- Create an issue
- View the issue
Extra
- Click the "Create merge request" button
What is the current bug behavior?
Shows menu items that have no branch name. Creates repository without warning when clicking the "create merge request button".
What is the expected correct behavior?
I would hide the "create merge request" button when the project's repository is empty. I think the current behaviour of creating a repo with certain branches in it without warning at all is at least very confusing behaviour. So either the button should be hidden or the user should be warned after clicking the button that a repository will be created.