Caches git repositories on demand.