Fix for old git versions :<

This commit is contained in:
Michel Roux 2015-08-13 15:18:21 +02:00
parent 1f87c792f1
commit c39f3168ee
1 changed files with 1 additions and 1 deletions

View File

@ -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'));