Revert "Remove git submodules before git checkout (#1611)" (#1799)

This reverts commit ff07728fa3bb6b06e2c05a8134213a5830244259.

Removing the .git file from the git submodule is problematic when
updating buildroot: Files deleted stay present in the buildroot
directory (since their origin is no longer known).

The workaround has been introduced to allow building non-git submodule
releases (rel-6) on the same runners. Since rel-7 uses git submodule and
we stay with git submodule for the forseeable future, remove this work
around.
This commit is contained in:
Stefan Agner 2022-03-17 13:40:02 +01:00 committed by GitHub
parent 829b5941e1
commit dde7a7b809
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 8 deletions

View File

@ -77,10 +77,6 @@ jobs:
return { "ref": context.ref } return { "ref": context.ref }
return { "ref": context.payload.pull_request.head.sha } return { "ref": context.payload.pull_request.head.sha }
# Make sure directories of potentially removed submodules are cleaned correctly
- name: Cleanup git submodules
run: find . -name .git -type f -exec rm {} \;
- name: Checkout source - name: Checkout source
uses: actions/checkout@v2 uses: actions/checkout@v2
with: with:

View File

@ -57,10 +57,6 @@ jobs:
runs-on: ${{ matrix.board.runner }} runs-on: ${{ matrix.board.runner }}
steps: steps:
# Make sure directories of potentially removed submodules are cleaned correctly
- name: Cleanup git submodules
run: find . -name .git -type f -exec rm {} \;
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2 - uses: actions/checkout@v2
with: with: