1
0
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:
Cameron
2014-06-27 23:18:31 -07:00
parent 673bec02e3
commit 2106c37896

View File

@@ -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);