Fix Encoding::UndefinedConversionError in RemoteService

What does this MR do and why?

Contributes to #567713 (closed)

Problem

RemoteService#update_remote_mirror fails with Unicode branch names.

The error occurred when passing UTF-8 branch names directly to Gitaly protobuf initialization without proper encoding conversion.

Solution

Encode branch names using encode_binary before Gitaly requests.

References

Encoding::UndefinedConversionError in RemoteSer... (#567713 - closed)

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #567713 (closed)

Merge request reports

Loading