-
- Downloads
Fix squash rebase not working when diff contained encoded data
When the applied diff contains UTF-8 or some other encoded data, the diff returned back from the git process may be in ASCII-8BIT format. Writing this data to stdin may fail if the data because stdin expects this data to be in UTF-8. By switching the output to binmode, we ensure that the diff will always be written as-is. Closes gitlab-org/gitlab-ee#4960
Showing
- changelogs/unreleased/sh-fix-squash-rebase-utf8-data.yml 5 additions, 0 deletionschangelogs/unreleased/sh-fix-squash-rebase-utf8-data.yml
- lib/gitlab/git/repository.rb 1 addition, 0 deletionslib/gitlab/git/repository.rb
- spec/lib/gitlab/git/repository_spec.rb 12 additions, 0 deletionsspec/lib/gitlab/git/repository_spec.rb
Please register or sign in to comment