Fix readme to correctly reflect no-commit-to-branch args

This commit is contained in:
Shakya, Milind 2018-10-04 17:40:47 -04:00
parent e018adf3ac
commit 023851e657

View file

@ -82,7 +82,7 @@ Add this to your `.pre-commit-config.yaml`
- `name-tests-test` - Assert that files in tests/ end in `_test.py`.
- Use `args: ['--django']` to match `test*.py` instead.
- `no-commit-to-branch` - Protect specific branches from direct checkins.
- Use `args: [--branch <branch>]` to set the branch. `master` is the
- Use `args: ['staging', 'master']` to set the branch. `master` is the
default if no argument is set.
- `-b` / `--branch` may be specified multiple times to protect multiple
branches.