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 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.
Diff Revision 2
This is not the most recent revision of the diff. The latest diff is revision 4. See what's changed.
orig
1
2
3
4
git_repository.go |
---|
repository.go |
---|
routes.go |
---|
util.go |
---|