Add a git fetch before pull. otherwise "FETCH_HEAD" is non-existant

This commit is contained in:
int2001
2024-03-23 06:10:46 +00:00
parent 47acab82d9
commit d948c5019a

View File

@@ -155,6 +155,7 @@ class Debug extends CI_Controller
try {
$st=exec('touch '.realpath(APPPATH.'../').'/.maintenance');
$st=exec('git stash push --include-untracked');
$st=exec('git fetch');
$st=exec('git pull');
$st=exec('git stash pop');
$st=exec('rm '.realpath(APPPATH.'../').'/.maintenance');