std::string Component::clone(const std::string& address) { std::string path = Host::store_path(address); Repository repo; repo.clone( "https://stenci.la/"+address+".git", path ); return path; }
std::string Component::fork(const std::string& from, const std::string& to) { std::string path = Host::store_path(to); Repository repo; repo.clone( "https://stenci.la/"+from+".git", path ); repo.remote("origin",""); return path; }