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

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

See merge request espressif/esp-idf!26803
This commit is contained in:
Roland Dobai 2023-11-03 20:02:49 +08:00
commit bcf2ef7ddd

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 \