diff options
author | Yorick Peterse <yorickpeterse@gmail.com> | 2016-12-13 16:49:17 +0100 |
---|---|---|
committer | Yorick Peterse <yorickpeterse@gmail.com> | 2016-12-13 16:52:49 +0100 |
commit | 43af4e5577e5ea338ea5cf072cd0635e3dabcc9e (patch) | |
tree | 67764aab8d39c8109d09e12343b553feff1d45f0 /app/models/commit.rb | |
parent | db9e1635d0d17596193ecbee8e0acc1916918d1d (diff) | |
download | gitlab-ce-43af4e5577e5ea338ea5cf072cd0635e3dabcc9e.tar.gz |
Encode when migrating ProcessCommitWorker jobsprocess-commit-worker-migration-encoding
If the source encoding is not UTF-8 we need to encode the data as
`JSON.dump` may throw an error if the input can not be converted to
UTF-8. We only encode when necessary to reduce the overhead.
Fixes gitlab-org/gitlab-ce#25489
Diffstat (limited to 'app/models/commit.rb')
0 files changed, 0 insertions, 0 deletions