Skip to content

Commit

Permalink
Removed swallow clone for idf
Browse files Browse the repository at this point in the history
  • Loading branch information
Diegorro98 authored Aug 23, 2023
1 parent c7c1a26 commit e7947ba
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
1 change: 0 additions & 1 deletion .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
6 changes: 1 addition & 5 deletions tools/docker/matter-builds
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e7947ba

Please sign in to comment.