Runner for Windows fails to clone when commit message is a single non-ASCII character
<!--- Please read this! Before opening a new issue, make sure to search for keywords in the issues filtered by the "regression" or "type::bug" label: - https://gitlab.com/gitlab-org/gitlab/issues?label_name%5B%5D=regression - https://gitlab.com/gitlab-org/gitlab/issues?label_name%5B%5D=type::bug and verify the issue you're about to submit isn't a duplicate. ---> ### Summary Runner for Windows fails to clone git repos on Windows OS with non-English locales when the commit message is a single character. ### Steps to reproduce Create your Windows runner: 1. Create and connect remotely to a Windows OS EC2 server 1. Install GitLab runner for Windows 2. **Go to Settings** > **Time & Language** > **Add a language** 3. Select and install a language such as Korean or Japanese 3. Configure the system locale in powershell. Ex: `Set-WinSystemLocale ko-KR` 4. Reboot server On GitLab: 1. Create a new commit with a project that has a `.gitlab-ci.yml` file 2. Enter the commit message `test` and commit. This works :white_check_mark: 2. Enter the commit message `あ` and commit. This fails :x: 2. Enter the commit message `ああ` and commit. This works :white_check_mark: 3. Enter the commit message `한` and commit. This fails :x: 2. Enter the commit message `한한` and commit. This works :white_check_mark: ### Example Project https://gitlab.com/mbadeau/450946 ### Workaround Set the Windows system locale to `en-US`. In Powershell, run `Set-WinSystemLocale en-US` and then reboot. ### Possible fixes <!-- If you can, link to the line of code that might be responsible for the problem. -->
issue