Remove old vendor fix (#13717)

* Remove old vendor fix 

Follow-up to #13712

* Remove another invalid check
This commit is contained in:
Jellyfrog
2022-01-29 14:49:57 +01:00
committed by GitHub
parent b4e9833e30
commit ed48cc5368

View File

@@ -286,9 +286,6 @@ main () {
check_dependencies
php_ver_ret=$?
# make sure the vendor directory is clean
git checkout vendor/ --quiet > /dev/null 2>&1
update_res=0
if [[ "$up" == "1" ]] || [[ "$php_ver_ret" == "1" ]]; then
# Update current branch to latest
@@ -346,12 +343,6 @@ main () {
# re-check dependencies after pull with the new code
check_dependencies
# Check for missing vendor dir
if [ ! -f vendor/autoload.php ]; then
git checkout 609676a9f8d72da081c61f82967e1d16defc0c4e -- vendor/
git reset HEAD vendor/ # don't add vendor directory to the index
fi
status_run 'Updating Composer packages' "${COMPOSER} install --no-dev" 'update'
# Check if we need to revert (Must be in post pull so we can update it)