From a5e4185f46f8f8f4cab33ea9c47d88c27060d40e Mon Sep 17 00:00:00 2001 From: Tianling Shen Date: Sat, 29 Apr 2023 12:29:15 +0800 Subject: [PATCH] Revert "scripts/feeds: use partial clone for git submodule update" Unfortunately this feature requires very recent git version. This reverts commit b6cc644e1f6a6a9824d85ea4fdb7c058339e923c. Signed-off-by: Tianling Shen (cherry picked from commit 98bb1a63441ae7a3427b5d080a37960171cca7e1) --- include/download.mk | 2 +- scripts/feeds | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/download.mk b/include/download.mk index 45c6f43944..8e4dd3158c 100644 --- a/include/download.mk +++ b/include/download.mk @@ -205,7 +205,7 @@ define DownloadMethod/rawgit [ \! -d $(SUBDIR) ] && \ git clone --filter=blob:none $(OPTS) $(URL) $(SUBDIR) && \ (cd $(SUBDIR) && git checkout $(VERSION) && \ - git submodule update --init --recursive --filter=blob:none) && \ + git submodule update --init --recursive) && \ echo "Packing checkout..." && \ export TAR_TIMESTAMP=`cd $(SUBDIR) && git log -1 --format='@%ct'` && \ rm -rf $(SUBDIR)/.git && \ diff --git a/scripts/feeds b/scripts/feeds index 52d09134ab..e972a7d654 100755 --- a/scripts/feeds +++ b/scripts/feeds @@ -160,7 +160,7 @@ my %update_method = ( 'init_commit' => "git clone '%s' '%s' && cd '%s' && git checkout -b '%s' '%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 --filter=blob:none", + 'post_update' => "git submodule update --init --recursive", 'controldir' => ".git", 'revision' => "git rev-parse --short HEAD | tr -d '\n'"}, 'src-git-full' => { @@ -169,7 +169,7 @@ my %update_method = ( 'init_commit' => "git clone --filter=blob:none '%s' '%s' && cd '%s' && git checkout -b '%s' '%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 --filter=blob:none", + 'post_update' => "git submodule update --init --recursive", 'controldir' => ".git", 'revision' => "git rev-parse --short HEAD | tr -d '\n'"}, 'src-gitsvn' => {