mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-09 23:24:06 -08:00
Fixed #7289 - git fetch before checkout in upgrade.php
This commit is contained in:
parent
2a6919c438
commit
124b249df4
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue