コード例 #1
0
ファイル: component-repo.cpp プロジェクト: michael/stencila
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;
}
コード例 #2
0
ファイル: component-repo.cpp プロジェクト: michael/stencila
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;
}