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

rb-gateway
master
0282c75...

Reviewers

A Mirror string field was added to Repository Info and a GetMirror
method was implemented in git_repository.go. LoadConfig was modified
to handle the new mirror option, and a getMirror function was added to
routes.go.

httpie was used to send a getMirror API request to an rb-gateway
server. The plain text stored in Mirror was obtained if it was defined,
otherwise a "Mirror not defined" message is obtained.

    Loading...