Indefero

Indefero Commit Details


Date:2011-10-31 17:19:57 (13 years 1 month ago)
Author:Gert van Valkenhoef
Branch:develop, feature.wiki-default-page, release-1.2, release-1.3
Commit:8397d86313b6c9963a279b43bfeb5fdb43d80ebd
Parents: b0ac05b608c0566562f2df23b5a8db7da70c012f
Message:No longer fail to remove a non-existing post-update hook on repository creation (fixes issue 752)

Changes:

File differences

NEWS.mdtext
5353
5454
5555
56
57
5658
5759
5860
- Source links without a specific revision did not work due to a wrong regex
(issue 730)
- Avatar URL generation use correctly the configuration (issue 732)
- The SyncGit plugin no longer fails to remove a non-existing post-update hook
on repository creation (issue 752)
- The error detection and reporting in the SyncMonotone plugin has been improved
- The branch links users of the Subversion frontend get when they enter a wrong
revision are fixed; this list is now also only displayed (for any SCM) if
src/IDF/Plugin/SyncGit/Serve.php
210210
211211
212212
213
213
214
214215
215216
216
217
217218
218219
219220
220221
221222
222223
223
224
224225
225226
226227
227228
228
229
229230
230231
231232
// Indefero's one.
$p = realpath(dirname(__FILE__).'/../../../../scripts/git-post-update');
$p = Pluf::f('idf_plugin_syncgit_post_update', $p);
if (!@unlink($fullpath.'/hooks/post-update')) {
$post_update_hook = $fullpath.'/hooks/post-update';
if (file_exists($post_update_hook) && !@unlink($post_update_hook)) {
Pluf_Log::warn(array('IDF_Plugin_Git_Serve::initRepository',
'post-update hook removal error.',
$fullpath.'/hooks/post-update'));
$post_update_hook));
return;
}
$out = array();
$res = 0;
exec(sprintf(Pluf::f('idf_exec_cmd_prefix', '').'ln -s %s %s',
escapeshellarg($p),
escapeshellarg($fullpath.'/hooks/post-update')),
escapeshellarg($post_update_hook)),
$out, $res);
if ($res != 0) {
Pluf_Log::warn(array('IDF_Plugin_Git_Serve::initRepository',
'post-update hook creation error.',
$fullpath.'/hooks/post-update'));
$post_update_hook));
return;
}
Pluf_Log::debug(array('IDF_Plugin_Git_Serve::initRepository',

Archive Download the corresponding diff file

Page rendered in 0.07916s using 14 queries.