Indefero

Indefero Commit Details


Date:2011-08-21 16:54:42 (13 years 4 months ago)
Author:Patrick Georgi
Branch:feature.webrepos
Commit:a47ec0df0a27946132d04e1c027f598c124d2adf
Parents: be95050a4b3c12e936d93ea3de32eff8fd957e18
Message:If necessary, create git repository on first http access

Changes:

File differences

src/IDF/Scm/Git.php
952952
953953
954954
955
956
957
958
959
960
961
962
963
964
965
966
967
955968
956969
957970
$path = $match[2];
if (!file_exists($this->repo)) {
mkdir($this->repo, 0750, true);
$out = array();
$res = 0;
exec(sprintf(Pluf::f('idf_exec_cmd_prefix', '').
Pluf::f('git_path', 'git').' --git-dir=%s init', escapeshellarg($this->repo)),
$out, $res);
if ($res != 0) {
Pluf_Log::error(array('IDF_Scm_Git::repository', $res, $this->repo));
throw new Exception(sprintf('Init repository error, exit status %d.', $res));
}
}
// update files before delivering them
if (($path == 'objects/info/pack') || ($path == 'info/refs')) {
$cmd = sprintf(Pluf::f('idf_exec_cmd_prefix', '').

Archive Download the corresponding diff file

Page rendered in 0.07700s using 13 queries.