Fix Git::Repository#write_ref bug

What does this MR do?

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

Closes #41143 (closed)

Merge request reports

Loading