Skip to content

Commit ac44a71

Browse files
committed
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 <remote> <branch> fatal: run_command returned non-zero status for bindings/python . ```
1 parent 4393ce8 commit ac44a71

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ the utilities, follow the commands listed below:
217217

218218
```shell
219219
$ cd /path/to/your/ModSecurity
220-
$ git submodule foreach git pull
220+
$ git submodule update --init --recursive
221221
$ make check
222222
```
223223

configure.ac

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,7 @@ AC_MSG_ERROR([\
6868
6969
You can download libInjection using git:
7070
71-
$ git submodule init
72-
$ git submodule update
71+
$ git submodule update --init --recursive
7372
7473
])
7574
fi
@@ -90,8 +89,7 @@ AC_MSG_ERROR([\
9089
9190
You can download Mbed TLS using git:
9291
93-
$ git submodule init
94-
$ git submodule update
92+
$ git submodule update --init --recursive
9593
9694
])
9795
fi

0 commit comments

Comments
 (0)