Skip to content

Commit 7b85bc3

Browse files
author
Tim Bannister
committed
Use a shallow clone for submodules in Netlify
1 parent 352700b commit 7b85bc3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

netlify.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# DO NOT REMOVE THIS (contact @kubernetes/sig-docs-leads)
55
publish = "public"
66
functions = "functions"
7-
command = "git submodule update --init --recursive && make non-production-build"
7+
command = "git submodule update --init --recursive --depth 1 && make non-production-build"
88

99
[build.environment]
1010
HUGO_VERSION = "0.70.0"
@@ -16,13 +16,13 @@ HUGO_ENV = "production"
1616
HUGO_ENABLEGITINFO = "true"
1717

1818
[context.deploy-preview]
19-
command = "git submodule update --init --recursive && make deploy-preview"
19+
command = "git submodule update --init --recursive --depth 1 && make deploy-preview"
2020

2121
[context.branch-deploy]
22-
command = "git submodule update --init --recursive && make deploy-preview"
22+
command = "git submodule update --init --recursive --depth 1 && make deploy-preview"
2323

2424
[context.master]
2525
# This context is triggered by the `master` branch and allows search indexing
2626
# DO NOT REMOVE THIS (contact @kubernetes/sig-docs-leads)
2727
publish = "public"
28-
command = "git submodule update --init --recursive && make production-build"
28+
command = "git submodule update --init --recursive --depth 1 && make production-build"

0 commit comments

Comments
 (0)