From ac44a71d2b3818c9fb0490b7df5fabb6eff42ec0 Mon Sep 17 00:00:00 2001 From: Hiroaki Nakamura Date: Sun, 28 Dec 2025 06:41:35 +0900 Subject: [PATCH] doc: Fix README to update git submodules The old instruction causes the following error: ``` $ git submodule foreach git pull Entering 'bindings/python' You are not currently on a branch. Please specify which branch you want to merge with. See git-pull(1) for details. git pull fatal: run_command returned non-zero status for bindings/python . ``` --- README.md | 2 +- configure.ac | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index d5abea92..50b88333 100644 --- a/README.md +++ b/README.md @@ -217,7 +217,7 @@ the utilities, follow the commands listed below: ```shell $ cd /path/to/your/ModSecurity -$ git submodule foreach git pull +$ git submodule update --init --recursive $ make check ``` diff --git a/configure.ac b/configure.ac index 7a78bb6c..31097b02 100644 --- a/configure.ac +++ b/configure.ac @@ -68,8 +68,7 @@ AC_MSG_ERROR([\ You can download libInjection using git: - $ git submodule init - $ git submodule update + $ git submodule update --init --recursive ]) fi @@ -90,8 +89,7 @@ AC_MSG_ERROR([\ You can download Mbed TLS using git: - $ git submodule init - $ git submodule update + $ git submodule update --init --recursive ]) fi