Skip to content

catfile: Add encoding information to GitCommit

Arun requested to merge (removed):git-commit-message-encoding into master

Currently, Gitaly doesn't return the encoding header, which is populated by git cat-file when the commit message was encoded using a non-UTF-8 encoding and the i18n.commitEncoding was set to that encoding when the commit was made. This can cause clients to show corrupted commit messages, as seen in gitlab#20058 (closed). This MR adds the encoding field to the GitCommit proto.

Fixes: #836 (closed)

Edited by Arun

Merge request reports