1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-30 19:30:25 +02:00

Support for automated git sync with a theme repo.

This commit is contained in:
Cameron
2019-06-11 10:09:41 -07:00
parent a6009d5957
commit 2337f8e678
4 changed files with 56 additions and 5 deletions

View File

@@ -1471,17 +1471,20 @@ class e_file
$cmd3 = 'cd '.$dir.'; '.$gitPath.' pull'; // Run Pull request
// $mes->addDebug($cmd1);
$text = '';
$mes->addDebug($cmd2);
$mes->addDebug($cmd3);
// return false;
// $text = `$cmd1 2>&1`;
$text = `$cmd2 2>&1`;
$text .= `$cmd2 2>&1`;
$text .= `$cmd3 2>&1`;
if(deftrue('e_DEBUG'))
if(deftrue('e_DEBUG') || deftrue('e_GIT_DEBUG'))
{
$message = date('r')."\t\tgitPull()\t\t".$text;
file_put_contents(e_LOG."fileClass.log",$message,FILE_APPEND);