Fixed #7289 - git fetch before checkout in upgrade.php
This commit is contained in:
parent
2a6919c438
commit
124b249df4
1 changed files with 2 additions and 0 deletions
|
@ -49,9 +49,11 @@ $git_version = shell_exec('git --version');
|
||||||
|
|
||||||
if ((strpos('git version', $git_version)) === false) {
|
if ((strpos('git version', $git_version)) === false) {
|
||||||
echo "Git is installed. \n";
|
echo "Git is installed. \n";
|
||||||
|
$git_fetch = shell_exec('git fetch');
|
||||||
$git_checkout = shell_exec('git checkout '.$branch);
|
$git_checkout = shell_exec('git checkout '.$branch);
|
||||||
$git_stash = shell_exec('git stash');
|
$git_stash = shell_exec('git stash');
|
||||||
$git_pull = shell_exec('git pull');
|
$git_pull = shell_exec('git pull');
|
||||||
|
echo '-- '.$git_fetch;
|
||||||
echo '-- '.$git_stash;
|
echo '-- '.$git_stash;
|
||||||
echo '-- '.$git_checkout;
|
echo '-- '.$git_checkout;
|
||||||
echo '-- '.$git_pull;
|
echo '-- '.$git_pull;
|
||||||
|
|
Loading…
Add table
Reference in a new issue