diff --git a/ajax.php b/ajax.php index 804fed1..6094cab 100644 --- a/ajax.php +++ b/ajax.php @@ -37,7 +37,7 @@ if (!empty($_POST['action'])) { } if ($session->isConnected()) { - $gitcommand = 'git --git-dir=' . $config['path'] . '/.git --work-tree=' . $config['path']; + $gitcommand = 'cd "' . $config['path'] . '" ; git'; if ($_POST['action'] == 'status') { echo ansi2html($session->exec($gitcommand . ' fetch'));