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
Information | |
---|---|
hmarceau | |
rb-gateway | |
master | |
0282c75... | |
Reviewers | |
rb-gateway, students | |
A
Mirror string
field was added toRepository Info
and aGetMirror
method was implemented ingit_repository.go
.LoadConfig
was modified
to handle the new mirror option, and agetMirror
function was added to
routes.go
.
httpie
was used to send agetMirror
API request to an rb-gateway
server. The plain text stored inMirror
was obtained if it was defined,
otherwise a"Mirror not defined"
message is obtained.