[openwrt/openwrt] scripts/feeds: shallow clone submodules
LEDE Commits
lede-commits at lists.infradead.org
Tue Mar 4 03:00:23 PST 2025
robimarko pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/9ec32cfb2733856a2ab4caee07d9b3297568381d
commit 9ec32cfb2733856a2ab4caee07d9b3297568381d
Author: Cedric CHEDALEUX <cedric.chedaleux at orange.com>
AuthorDate: Mon Feb 17 10:44:36 2025 +0100
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 at orange.com>
Link: https://github.com/openwrt/openwrt/pull/18003
Signed-off-by: Robert Marko <robimarko at gmail.com>
---
scripts/feeds | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/feeds b/scripts/feeds
index 0ff6765814..959995c7af 100755
--- a/scripts/feeds
+++ b/scripts/feeds
@@ -162,7 +162,7 @@ my %update_method = (
'update_rebase' => "git pull --rebase=merges",
'update_stash' => "git pull --rebase=merges --autostash",
'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 HEAD | tr -d '\n'"},
'src-git-full' => {
More information about the lede-commits
mailing list