File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff 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,
205205depending 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
210210git 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
212213git init
213- pre-commit install
214+ git add .
214215pre-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
You can’t perform that action at this time.
0 commit comments