From 489cc1fa91bb5c8b6ca84e53443ff3d772937b53 Mon Sep 17 00:00:00 2001 From: xengineering Date: Sat, 6 Jul 2024 13:02:17 +0200 Subject: 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. --- main.go | 1 + 1 file changed, 1 insertion(+) 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", ) -- cgit v1.2.3-70-g09d2