summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCedric CHEDALEUX2025-02-17 09:44:36 +0000
committerRobert Marko2025-03-04 11:01:44 +0000
commit9836836302afa6a7687e6b19c7780be8d16e8911 (patch)
tree6a99b07492b37491e9bb46950f98bdd673586f9d
parentefffa8a6084ea534751fe28c90a83a0b486f7176 (diff)
downloadopenwrt-9836836302afa6a7687e6b19c7780be8d16e8911.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)
-rwxr-xr-xscripts/feeds2
1 files changed, 1 insertions, 1 deletions
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' => {