Add or edit file path is misleading if you are committing to a new branch
Description
- Suppose you do not have permissions to commit directly to master.
- Go to any subdirectory on master in the web UI.
- Go to a file and click edit, e.g. https://gitlab.com/gitlab-org/gitlab-ce/edit/master/app/assets/javascripts/behaviors/autosize.js
- The UI allows you to edit the file. In the background, it creates a new branch and makes that commit for you.
- However, the UI is misleading on this page because it says "master" in the file path at the top.
- At the bottom it allows you to name the new branch. But the top part is still misleading.
Edited by 🤖 GitLab Bot 🤖