From 8f914c44a1310fd0e861bddda229e0724af42da8 Mon Sep 17 00:00:00 2001 From: Mehdi Kabab Date: Tue, 11 May 2010 10:13:38 +0200 Subject: [PATCH] Fixed issue 459, variables not defined for exec in PHP 5.3. --- src/IDF/Plugin/SyncGit/Serve.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/IDF/Plugin/SyncGit/Serve.php b/src/IDF/Plugin/SyncGit/Serve.php index 22734d0..499a1ba 100644 --- a/src/IDF/Plugin/SyncGit/Serve.php +++ b/src/IDF/Plugin/SyncGit/Serve.php @@ -196,6 +196,8 @@ class IDF_Plugin_SyncGit_Serve if (!file_exists($fullpath)) { mkdir($fullpath, 0750, true); } + $out = array(); + $res = 0; exec(sprintf(Pluf::f('idf_exec_cmd_prefix', ''). Pluf::f('git_path', 'git').' --git-dir=%s init', escapeshellarg($fullpath)), $out, $res); @@ -214,6 +216,8 @@ class IDF_Plugin_SyncGit_Serve $fullpath.'/hooks/post-update')); return; } + $out = array(); + $res = 0; exec(sprintf(Pluf::f('idf_exec_cmd_prefix', '').'ln -s %s %s', escapeshellarg($p), escapeshellarg($fullpath.'/hooks/post-update')),