A mirror URL can now be defined for git repositories in rb-gateway.

Review Request #9305 - Created Oct. 21, 2017 and updated

Henri-Philippe Marceau
rb-gateway
master
0282c75...
rb-gateway, students

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.

  • 0
  • 0
  • 1
  • 0
  • 1
Description From Last Updated
Henri-Philippe Marceau
Henri-Philippe Marceau
Henri-Philippe Marceau
Henri-Philippe Marceau
David Trowbridge
  1. 
      
  2. Can we add a unit test for the mirror route?

    1. The tests can be found in Review Request 9435.
      https://reviews.reviewboard.org/r/9435/

  3. 
      
Henri-Philippe Marceau
Review request changed

Commit:

-a6fdde509d627b75d28a5453ee9d83549842dbcf
+0282c759e241e70e21a4e2656025923d758df0e5

Diff:

Revision 4 (+49 -6)

Show changes

Checks run (2 succeeded)

flake8 passed.
JSHint passed.
Loading...