Fixed #7289 - git fetch before checkout in upgrade.php

This commit is contained in:
snipe 2019-08-15 01:32:20 -07:00
parent 2a6919c438
commit 124b249df4

View file

@ -49,9 +49,11 @@ $git_version = shell_exec('git --version');
if ((strpos('git version', $git_version)) === false) {
echo "Git is installed. \n";
$git_fetch = shell_exec('git fetch');
$git_checkout = shell_exec('git checkout '.$branch);
$git_stash = shell_exec('git stash');
$git_pull = shell_exec('git pull');
echo '-- '.$git_fetch;
echo '-- '.$git_stash;
echo '-- '.$git_checkout;
echo '-- '.$git_pull;