From c39f3168ee3c9a118d92e55bd5f109fbb5ccca6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xe=CC=81fir=20Destiny?= Date: Thu, 13 Aug 2015 15:18:21 +0200 Subject: [PATCH] Fix for old git versions :< --- ajax.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'));