added GitModel::createRepo() for experiment

This commit is contained in:
hyung-hwan 2018-12-10 06:40:42 +00:00
parent f8bd8e7ad2
commit 521a1757ab

View File

@ -152,6 +152,17 @@ class GitModel extends CodeRepoModel
{ {
return FALSE; return FALSE;
} }
static function createRepo ($projectid, $repodir, $cfgdir, $api)
{
$projdir = "{$repodir}/{$projectid}";
if (@git_repository_init($projdir, TRUE) === FALSE) return FALSE;
}
static function deleteRepo ($projectid, $repodir)
{
return $this->deleteDirectory("{$repodir}/{$projectid}");
}
} }
?> ?>