Gitlab::Git classes inside gitaly-ruby mangle non-ASCII text
The way Gitaly and GitLab do encodings is this:
Git (binary) -> Gitaly (binary) -> protobuf (binary) -> gitlab-ce Gitlab::Git (coerce to UTF-8) -> user (UTF-8)
We have some ~"technical debt" in Gitaly now because of Gitlab::Git code copied into gitaly-ruby during the migration project. This code is coercing binary data to UTF-8 at some random places where it should be binary -- because inside Gitaly all text is binary.
I think this was the cause of #1361 (closed). Also see !952 (merged)
Edited by Jacob Vosmaer