Mark repo as safe directory to git config (#5102)

This commit is contained in:
Dave T 2023-07-16 22:19:08 +01:00 committed by GitHub
parent ac81fae855
commit 899aa31df3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,6 +10,11 @@ if [ ! -n "$DEVCONTAINER" ] && [ ! -n "$VIRTUAL_ENV" ] && [ ! "$ESPHOME_NO_VENV"
source venv/bin/activate source venv/bin/activate
fi fi
# Avoid unsafe git error when running inside devcontainer
if [ -n "$DEVCONTAINER" ];then
git config --global --add safe.directory "$PWD"
fi
pip3 install -r requirements.txt -r requirements_optional.txt -r requirements_test.txt pip3 install -r requirements.txt -r requirements_optional.txt -r requirements_test.txt
pip3 install setuptools wheel pip3 install setuptools wheel
pip3 install --no-use-pep517 -e . pip3 install --no-use-pep517 -e .