Automatically create the git repository during the cron run.
This commit is contained in:
parent
3fbac71f04
commit
6b32413e69
@ -215,6 +215,9 @@ class IDF_Plugin_SyncGit_Serve
|
|||||||
$conf = new IDF_Conf();
|
$conf = new IDF_Conf();
|
||||||
$conf->setProject($project);
|
$conf->setProject($project);
|
||||||
$scm = $conf->getVal('scm', 'git');
|
$scm = $conf->getVal('scm', 'git');
|
||||||
|
if ($scm == 'git' and !file_exists($fullpath)) {
|
||||||
|
$this->initRepository($fullpath);
|
||||||
|
}
|
||||||
if ($scm != 'git' or $project->private) {
|
if ($scm != 'git' or $project->private) {
|
||||||
return $this->gitExportDeny($fullpath);
|
return $this->gitExportDeny($fullpath);
|
||||||
}
|
}
|
||||||
|
@ -67,5 +67,7 @@ Pluf_Signal::connect('IDF_Project::membershipsUpdated',
|
|||||||
array('IDF_Plugin_SyncGit', 'entry'));
|
array('IDF_Plugin_SyncGit', 'entry'));
|
||||||
Pluf_Signal::connect('IDF_Key::postSave',
|
Pluf_Signal::connect('IDF_Key::postSave',
|
||||||
array('IDF_Plugin_SyncGit', 'entry'));
|
array('IDF_Plugin_SyncGit', 'entry'));
|
||||||
|
Pluf_Signal::connect('IDF_Project::created',
|
||||||
|
array('IDF_Plugin_SyncGit', 'entry'));
|
||||||
|
|
||||||
return $m;
|
return $m;
|
||||||
|
Loading…
Reference in New Issue
Block a user