1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-15 11:04:18 +02:00

Fix for Plugin/Theme git pull requests.

This commit is contained in:
Cameron
2016-06-25 10:38:05 -07:00
parent d412e7cf75
commit b6194499ce
2 changed files with 6 additions and 5 deletions

View File

@@ -1251,6 +1251,8 @@ class e_file
$gitPath = defset('e_GIT','git'); // addo to e107_config.php to
$mes = e107::getMessage();
// $text = 'umask 0022'; //Could correct permissions issue with 0664 files.
// Change Dir.
switch($type)
@@ -1272,18 +1274,17 @@ class e_file
// return $cmd;
$mes->addDebug($cmd);
$mes->addDebug($cmd);
$text = `$cmd 2>&1`;
// Remove any local changes.
$cmd = $gitPath.' reset --hard';
$cmd = $gitPath.' --git-dir='.$dir.'/.git reset --hard';
$mes->addDebug($cmd);
$text .= `$cmd 2>&1`;
// Run Pull request
$cmd = $gitPath.' pull';
$cmd = $gitPath.' --git-dir='.$dir.'/.git pull';
$mes->addDebug($cmd);
$text .= `$cmd 2>&1`;