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