Beispiel #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;
}
Beispiel #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;
}