added GitModel::createRepo() for experiment
This commit is contained in:
parent
f8bd8e7ad2
commit
521a1757ab
@ -152,6 +152,17 @@ class GitModel extends CodeRepoModel
|
||||
{
|
||||
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}");
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
Loading…
Reference in New Issue
Block a user