diff --git a/docroot/git/push.php b/docroot/git/push.php index ba8bf06..c7d0957 100755 --- a/docroot/git/push.php +++ b/docroot/git/push.php @@ -14,7 +14,8 @@ if ($pData->head_commit->message [0] != '!') { system ( "echo 'START NO ESC' >> /tmp/post.log" ); - exec ( "/usr/local/bin/git -C /usr/web/sites/app.zirror.com pull >> /tmp/git.log" ); + chdir ( "/usr/web/sites/app.zirror.com" ); + shell_exec ( "/usr/local/bin/git -C /usr/web/sites/app.zirror.com pull >> /tmp/git.log" ); system ( "echo 'END' >> /tmp/post.log" ); } else {