Merge Request command line text copy change breaks user experience
Summary
Earlier, when I used to "Merge Requests", I used to select the "Command Line" option and simply copy the commands from the "Check out, review, and merge locally" pop-up modal. But, now, you have added the following additional line:
"-# All repo/branch refs have been quoted to allow support for special characters (such as #my-branch)"
that does not execute well in the bash shell.
Steps to reproduce
For any Merge Request -> Command Line -> Click the copy option in the modal pop-up -> Paste the same in a bash terminal.
Example Project
All merge requests in gitlab.com/shakthimaan/operation-blue-moon project.
What is the current bug behavior?
$ -# All repo/branch refs have been quoted to allow support for special characters (such as #my-branch) bash: syntax error near unexpected token `('
What is the expected correct behavior?
The merge request Git branch should be checked out cleanly without any errors.
Possible fixes
Do not include the following text when copying the command line option to merge the request:
$ -# All repo/branch refs have been quoted to allow support for special characters (such as #my-branch)
Please do not break user experience!