A mirror URL can now be defined for git repositories in rb-gateway.
Review Request #9305 — Created Oct. 21, 2017 and updated — Latest diff uploaded
A
Mirror stringfield was added toRepository Infoand aGetMirror
method was implemented ingit_repository.go.LoadConfigwas modified
to handle the new mirror option, and agetMirrorfunction was added to
routes.go.
httpiewas used to send agetMirrorAPI request to an rb-gateway
server. The plain text stored inMirrorwas obtained if it was defined,
otherwise a"Mirror not defined"message is obtained.