From c3041653017c9bf1b4fad079e02b799458ca821f Mon Sep 17 00:00:00 2001 From: Pete Cooper Date: Tue, 22 Sep 2026 16:36:03 +0100 Subject: [PATCH] Update README.md limit `git submodule update` to 1 layer considerably reduces transfer amount and time taken --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 7bb6a0aa9..735f3e870 100644 --- a/README.md +++ b/README.md @@ -70,7 +70,7 @@ cd ModSecurity This repository uses git submodules. After cloning, make sure to initialize and fetch all submodules: ```sh -git submodule update --init --recursive +git submodule update --depth 1 --init --recursive ``` You can verify that all submodules are properly initialized with: @@ -139,7 +139,7 @@ The repository includes the following submodules: After merging PR #3532, it is required to run: ```sh - git submodule update --init --recursive + git submodule update --depth 1 --init --recursive ``` This ensures that all required submodules are fetched. Without this step, the project will not build successfully. @@ -327,7 +327,7 @@ the utilities, follow the commands listed below: ```shell $ cd /path/to/your/ModSecurity -$ git submodule update --init --recursive +$ git submodule update --depth 1 --init --recursive $ make check ```