DOS line endings are striped when uploading files using the web IDE
Summary
When using the GitLab web IDE on a GitLab project newlines a (CR) characters are stripped form the uploaded file, in some cases this can break the uploaded code. In our case this was an uploaded patch file which failed to apply correctly due to the removal of the (CR) characters in each line ending.
Steps to reproduce
- Open the GitLab Web IDE on a linux system in firefox and upload a file with DOS newlines.
- Commit the change.
- Pull the change in a terminal and check for DOS newlines in the file.