summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2024-07-06 13:02:17 +0200
committerxengineering <me@xengineering.eu>2024-07-06 13:02:17 +0200
commit489cc1fa91bb5c8b6ca84e53443ff3d772937b53 (patch)
tree56d459f62a8b911e6830ecbcc5e17e90c420c0c0
parent784991a344f3cd27e5ddf6ae92f39def540032b3 (diff)
downloadcraft-489cc1fa91bb5c8b6ca84e53443ff3d772937b53.tar
craft-489cc1fa91bb5c8b6ca84e53443ff3d772937b53.tar.zst
craft-489cc1fa91bb5c8b6ca84e53443ff3d772937b53.zip
Improve submodule update performance significantly
This commit add the usage of shallow submodule updates. Thus after checking out the targeted commit of the parent repository only the required commits of the submodules are fetched.
-rw-r--r--main.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/main.go b/main.go
index 9020aaa..505daf1 100644
--- a/main.go
+++ b/main.go
@@ -83,6 +83,7 @@ func prepareWorkbench(repo string, commit string) string {
workbench,
"submodule",
"update",
+ "--depth=1",
"--init",
"--recursive",
)