diff --git a/e107_handlers/cron_class.php b/e107_handlers/cron_class.php index 9d00c961d..21573503c 100644 --- a/e107_handlers/cron_class.php +++ b/e107_handlers/cron_class.php @@ -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);