Fixed issue 467, exception when deleting an orphan git repo.

This commit is contained in:
Vladimir Solomatin
2010-05-17 19:40:26 +02:00
committed by Loic d'Anterroches
parent 89780b0317
commit 430c9cb00e
2 changed files with 3 additions and 0 deletions

View File

@@ -99,6 +99,7 @@ class IDF_Plugin_SyncGit_Cron
if (count($orphans)) {
$cmd = Pluf::f('idf_exec_cmd_prefix', '').'rm -rf '.implode(' ', $orphans);
exec($cmd);
clearstatcache();
while (list(, $project) = each($orphans)) {
if (is_dir($project)) {
throw new Exception(sprintf('Cannot remove %s directory.', $project));