diff options
author | xengineering <me@xengineering.eu> | 2024-07-06 13:02:17 +0200 |
---|---|---|
committer | xengineering <me@xengineering.eu> | 2024-07-06 13:02:17 +0200 |
commit | 489cc1fa91bb5c8b6ca84e53443ff3d772937b53 (patch) | |
tree | 56d459f62a8b911e6830ecbcc5e17e90c420c0c0 | |
parent | 784991a344f3cd27e5ddf6ae92f39def540032b3 (diff) | |
download | craft-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.go | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -83,6 +83,7 @@ func prepareWorkbench(repo string, commit string) string { workbench, "submodule", "update", + "--depth=1", "--init", "--recursive", ) |