Skip to content

Commit 1d87bbd

Browse files
committed
Fixed README script to be correct
Previous script had all of the linters skip running
1 parent 9a9bbc0 commit 1d87bbd

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -204,16 +204,20 @@ The full include-list for err.c:
204204
_Note that for your config yaml, you can supply your own args or remove the args line entirely,
205205
depending on your use case._
206206

207-
You can also clone this repo and then run the test_repo to see all of the linters at work to produce this output,
207+
You can also clone this repo and then run the test_repo to see all of the linters at work to produce this output:
208208

209209
```bash
210210
git clone https://github.com/pocc/pre-commit-hooks
211-
cd pre-commit-hooks/tests/test_repo
211+
cp -r pre-commit-hooks/tests/test_repo .
212+
cd test_repo
212213
git init
213-
pre-commit install
214+
git add .
214215
pre-commit run
215216
```
216217

218+
Note that we are copying the test_repo outside of the pre-commit-hooks repo
219+
so that pre-commit doesn't get confused by nested github repositories.
220+
217221
## Using this repo
218222

219223
### Special flags in this repo

0 commit comments

Comments
 (0)