Skip to content

Commit

Permalink
Fixed snipe#7289 - git fetch before checkout in upgrade.php
Browse files Browse the repository at this point in the history
  • Loading branch information
snipe committed Aug 15, 2019
1 parent 2a6919c commit 124b249
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,11 @@

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;
Expand Down

0 comments on commit 124b249

Please sign in to comment.