From 124b249df4b521944c0c34c1c50414aaa6f5c4cf Mon Sep 17 00:00:00 2001 From: snipe Date: Thu, 15 Aug 2019 01:32:20 -0700 Subject: [PATCH] Fixed #7289 - git fetch before checkout in upgrade.php --- upgrade.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/upgrade.php b/upgrade.php index a669c5f08e..0c287b8f20 100644 --- a/upgrade.php +++ b/upgrade.php @@ -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;