From e7947bac35a6196fccb8412484343e5101be3f75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=2E=20Diego=20Rodr=C3=ADguez=20Royo?= Date: Wed, 23 Aug 2023 18:13:15 +0000 Subject: [PATCH] Removed swallow clone for idf --- .github/workflows/docker-image.yml | 1 - tools/docker/matter-builds | 6 +----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 039dbcbcc..5a95a9bb8 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -83,5 +83,4 @@ jobs: build-args: | ESP_MATTER_CLONE_URL=${{ github.server_url }}/${{ github.repository }}.git ESP_MATTER_CHECKOUT_REF=${{ GITHUB_REF_NAME }} - IDF_CLONE_SHALLOW=1 IDF_CHECKOUT_REF=${{ env.REQUIRED_IDF_VERSION }} diff --git a/tools/docker/matter-builds b/tools/docker/matter-builds index 7c04e3f5e..1720d61cc 100644 --- a/tools/docker/matter-builds +++ b/tools/docker/matter-builds @@ -10,20 +10,16 @@ RUN set -x \ && : # last line # Use IDF_CHECKOUT_REF to specify a tag, a branch or a specific commit ID. -# Use IDF_CLONE_SHALLOW=1 to peform shallow clone (i.e. --depth=1 --shallow-submodules) ARG IDF_CLONE_URL=https://github.com/espressif/esp-idf.git ARG IDF_CHECKOUT_REF=v5.1 -ARG IDF_CLONE_SHALLOW= RUN set -x \ && mkdir -p /tmp/esp-idf \ && cd /tmp/esp-idf \ && git init \ && git remote add origin $IDF_CLONE_URL \ - && if [ -n "$IDF_CLONE_SHALLOW" ]; then \ - git fetch origin --depth=1 --recurse-submodules ${IDF_CHECKOUT_REF}; \ - fi \ + && git fetch origin --depth=1 --recurse-submodules ${IDF_CHECKOUT_REF} \ && git checkout FETCH_HEAD \ && git submodule update --init --recursive --depth 1 \ && : # last line