mirror of
https://github.com/e107inc/e107.git
synced 2025-08-08 07:36:32 +02:00
Reset git repo before pull.
This commit is contained in:
@@ -45,6 +45,11 @@ class _system_cron
|
|||||||
$mes->addDebug($cmd);
|
$mes->addDebug($cmd);
|
||||||
$text .= `$cmd 2>&1`;
|
$text .= `$cmd 2>&1`;
|
||||||
|
|
||||||
|
// Remove any local changes.
|
||||||
|
$cmd = 'git reset --hard';
|
||||||
|
$mes->addDebug($cmd);
|
||||||
|
$text .= `$cmd 2>&1`;
|
||||||
|
|
||||||
// Run Pull request
|
// Run Pull request
|
||||||
$cmd = 'git pull';
|
$cmd = 'git pull';
|
||||||
$mes->addDebug($cmd);
|
$mes->addDebug($cmd);
|
||||||
|
Reference in New Issue
Block a user