Indefero

Indefero Commit Details


Date:2009-09-21 03:03:33 (15 years 3 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:157819195b1b78daa0a3b9caa8c03b2400bc53e5
Parents: 25d7a5a776481e1393b0bc51dfd9a28ceb0c7f42
Message:Fixed issue 285, weird mkdir() error sometimes on first git push.

Changes:

File differences

src/IDF/Plugin/SyncGit/Serve.php
9191
9292
9393
94
94
95
96
9597
9698
9799
......
190192
191193
192194
193
195
196
197
194198
195199
196200
// the repository on the fly
$p = explode(DIRECTORY_SEPARATOR, $fullpath);
$mpath = implode(DIRECTORY_SEPARATOR, array_slice($p, 0, -1));
mkdir($mpath, 0750, true);
if (!file_exists($mpath)) {
mkdir($mpath, 0750, true);
}
$this->initRepository($fullpath);
$this->setGitExport($relpath, $fullpath);
}
*/
public function initRepository($fullpath)
{
mkdir($fullpath, 0750, true);
if (!file_exists($fullpath)) {
mkdir($fullpath, 0750, true);
}
exec(sprintf(Pluf::f('idf_exec_cmd_prefix', '').
Pluf::f('git_path', 'git').' --git-dir=%s init', escapeshellarg($fullpath)),
$out, $res);

Archive Download the corresponding diff file

Page rendered in 0.06906s using 14 queries.