Fix for old git versions :<
This commit is contained in:
parent
1f87c792f1
commit
c39f3168ee
2
ajax.php
2
ajax.php
@ -37,7 +37,7 @@ if (!empty($_POST['action'])) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($session->isConnected()) {
|
if ($session->isConnected()) {
|
||||||
$gitcommand = 'git --git-dir=' . $config['path'] . '/.git --work-tree=' . $config['path'];
|
$gitcommand = 'cd "' . $config['path'] . '" ; git';
|
||||||
|
|
||||||
if ($_POST['action'] == 'status') {
|
if ($_POST['action'] == 'status') {
|
||||||
echo ansi2html($session->exec($gitcommand . ' fetch'));
|
echo ansi2html($session->exec($gitcommand . ' fetch'));
|
||||||
|
Loading…
Reference in New Issue
Block a user