Indefero

Indefero Commit Details


Date:2009-10-09 03:35:13 (15 years 6 months ago)
Author:Loic d'Anterroches
Branch:develop, feature-issue_links, feature.better-home, feature.content-md5, feature.diff-whitespace, feature.download-md5, feature.issue-links, feature.issue-of-others, feature.issue-summary, feature.search-filter, feature.webrepos, feature.wiki-default-page, master, release-1.1, release-1.2, release-1.3
Commit:8d3290591327e2c4b8f24837c93b720c50555edf
Parents: 58ab16432c96a72a66c9a7fa658af0c2daefd3e8
Message:Fixed transient error when the git cron job creates the repository before the first push.

Changes:

File differences

src/IDF/Plugin/SyncGit/Serve.php
213213
214214
215215
216
216
217217
218218
219219
......
221221
222222
223223
224
224
225
225226
226227
227228
    {
        $sql = new Pluf_SQL('shortname=%s', array($relpath));
        $projects = Pluf::factory('IDF_Project')->getList(array('filter'=>$sql->gen()));
        if ($projects->count() != 1) {
        if ($projects->count() != 1 and file_exists($fullpath)) {
            return $this->gitExportDeny($fullpath);
        }
        $project = $projects[0];
        $conf->setProject($project);
        $scm = $conf->getVal('scm', 'git');
        if ($scm == 'git' and !file_exists($fullpath)) {
            $this->initRepository($fullpath);
            // No repository yet, just skip
            return false;
        }
        if ($scm != 'git' or $project->private) {
            return $this->gitExportDeny($fullpath);

Archive Download the corresponding diff file

Page rendered in 0.13780s using 13 queries.