web-IDE: Space in new branch gives a misleading "Branch has changed" error
Summary
During commit a space in new branch gives a misleading error
Steps to reproduce
- Open a file in webIDE
- Commit change while selecting new branch
- Enter invalid branch name with space
Example Project
Gitlab.com
What is the current bug behavior?
Displays the following error message:
Branch has changed
This branch has changed since you started editing. Would you like to create a new branch?
What is the expected correct behavior?
Displays the following error message:
Invalid Branch Name
Spaces are not allowed in branch names. See here for more info: example
Relevant logs and/or screenshots
Output of checks
This bug happens on GitLab.com
Possible fixes
Edited  by Garrett Heaton
