projects
/
openwrt
/
staging
/
neocturne.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
32d0a57
)
scripts/feeds: shallow clone submodules
author
Cedric CHEDALEUX
<
[email protected]
>
Mon, 17 Feb 2025 09:44:36 +0000
(10:44 +0100)
committer
Robert Marko
<
[email protected]
>
Tue, 4 Mar 2025 11:00:19 +0000
(12:00 +0100)
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 <
[email protected]
>
Link:
https://github.com/openwrt/openwrt/pull/18003
Signed-off-by: Robert Marko <
[email protected]
>
scripts/feeds
patch
|
blob
|
history
diff --git
a/scripts/feeds
b/scripts/feeds
index 0ff676581449640244f9ba1b4cce09328f0d80de..959995c7afa17109a5e2b03990ff4b69da75068d 100755
(executable)
--- 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' => {