Merge branch 'bugfix/docker_safe_repo_v5.1' into 'release/v5.1'

fix(docker): set esp-idf repo as safe directory (v5.1)

See merge request espressif/esp-idf!26804
This commit is contained in:
Roland Dobai 2023-11-16 18:55:32 +08:00
commit 36cb0b29b2

View File

@ -68,6 +68,7 @@ RUN echo IDF_CHECKOUT_REF=$IDF_CHECKOUT_REF IDF_CLONE_BRANCH_OR_TAG=$IDF_CLONE_B
${IDF_CLONE_SHALLOW:+--depth=1 --shallow-submodules} \
${IDF_CLONE_BRANCH_OR_TAG:+-b $IDF_CLONE_BRANCH_OR_TAG} \
$IDF_CLONE_URL $IDF_PATH && \
git config --system --add safe.directory $IDF_PATH && \
if [ -n "$IDF_CHECKOUT_REF" ]; then \
cd $IDF_PATH && \
if [ -n "$IDF_CLONE_SHALLOW" ]; then \