[WIP] Adding Initial Cloning for New Repos

Review Request #9324 — Created Oct. 24, 2017 and discarded — Latest diff uploaded

Information

rb-gateway
master

Reviewers

I added a check in util.go, it attempts to open the repository
with the provided path. It should only fail if the repository doesn't
exist, in that case if a mirror URL is defined the repository will be
cloned.