Restore vendor contents even if composer is not available (#8223)

* Restore vendor contents even if composer is not available
Leave the code in both places for safety.

* Instruct users to use the wrapper instead of straight up composer...
This commit is contained in:
Tony Murray
2018-02-07 20:45:18 -06:00
committed by GitHub
parent 547451974d
commit f43e23e15a
3 changed files with 9 additions and 3 deletions

View File

@@ -227,6 +227,12 @@ main () {
status_run 'Cleaning up DB' "$DAILY_SCRIPT cleanup"
;;
post-pull)
# 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)