From 3263075a8df7d4c117bafc0a7c0fd940951a4545 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xe=CC=81fir=20Destiny?= Date: Thu, 13 Aug 2015 15:58:25 +0200 Subject: [PATCH] Revert "Fix for old git versions :<" This reverts commit c39f3168ee3c9a118d92e55bd5f109fbb5ccca6f. --- ajax.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ajax.php b/ajax.php index 6094cab..804fed1 100644 --- a/ajax.php +++ b/ajax.php @@ -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'));