Skip to content

Port UpdateRemoteMirror to Go

Sami Hiltunen requested to merge smh-port-update-remote-mirror into master

This MR adds a Go port of UpdateRemoteMirror behind a feature flag.

UpdateRemoteMirror is an RPC that updates a remote mirror of the repository by pushing to it. It first fetches the remote's refs, compares them to the local ones and pushes to any refs that need to be updated or deleted.

Various bugs were discovered while porting the RPC. These bugs have test cases and links to the relevant issues. I've kept the bug compatibility now so the test cases pass for both the original Ruby implementation and the Go port.

Closes #3316 (closed)

Merge request reports

Loading