Revert "Fix for old git versions :<"

This reverts commit c39f3168ee.
This commit is contained in:
Michel Roux 2015-08-13 15:58:25 +02:00
parent 765a7a48a3
commit 3263075a8d

View File

@ -37,7 +37,7 @@ if (!empty($_POST['action'])) {
}
if ($session->isConnected()) {
$gitcommand = 'cd "' . $config['path'] . '" ; git';
$gitcommand = 'git --git-dir=' . $config['path'] . '/.git --work-tree=' . $config['path'];
if ($_POST['action'] == 'status') {
echo ansi2html($session->exec($gitcommand . ' fetch'));