diff options
| author | Cedric CHEDALEUX | 2025-02-17 09:44:36 +0000 |
|---|---|---|
| committer | Christian Marangi | 2025-03-05 13:19:01 +0000 |
| commit | 081ff3eee230202c42958be0d341057244aa0ec1 (patch) | |
| tree | 67cb377cb1c072fb9c44e76b65f80382ef64fb80 | |
| parent | 775f9d56ce0684ceee269aaeb43eb09227f17ef1 (diff) | |
| download | openwrt-081ff3eee230202c42958be0d341057244aa0ec1.tar.gz | |
scripts/feeds: shallow clone submodules
When a feed has submodules, all its submodules are fully cloned whereas
the feed itself is shallowed. Let's be consistent and perform shallow clones
as well for the submodules.
Signed-off-by: Cedric CHEDALEUX <cedric.chedaleux@orange.com>
Link: https://github.com/openwrt/openwrt/pull/18003
Signed-off-by: Robert Marko <robimarko@gmail.com>
(cherry picked from commit 9ec32cfb2733856a2ab4caee07d9b3297568381d)
Link: https://github.com/openwrt/openwrt/pull/18168
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
| -rwxr-xr-x | scripts/feeds | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/feeds b/scripts/feeds index 3df947c9c7..f0dea6d040 100755 --- a/scripts/feeds +++ b/scripts/feeds @@ -160,7 +160,7 @@ my %update_method = ( 'init_commit' => "git clone --depth 1 '%s' '%s' && cd '%s' && git fetch --depth=1 origin '%s' && git -c advice.detachedHead=false checkout '%s' && cd -", 'update' => "git pull --ff-only", 'update_force' => "git pull --ff-only || (git reset --hard HEAD; git pull --ff-only; exit 1)", - 'post_update' => "git submodule update --init --recursive", + 'post_update' => "git submodule update --init --recursive --depth 1", 'controldir' => ".git", 'revision' => "git rev-parse --short HEAD | tr -d '\n'"}, 'src-git-full' => { |