Ejemplo n.º 1
0
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;
}
Ejemplo n.º 2
0
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;
}