diff --git a/codepot/src/codepot/models/gitmodel.php b/codepot/src/codepot/models/gitmodel.php index ff41c266..6a76994a 100644 --- a/codepot/src/codepot/models/gitmodel.php +++ b/codepot/src/codepot/models/gitmodel.php @@ -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}"); + } } ?>