From 023851e657737f286c7cac03d817336aa49c32f1 Mon Sep 17 00:00:00 2001 From: "Shakya, Milind" Date: Thu, 4 Oct 2018 17:40:47 -0400 Subject: [PATCH 1/2] Fix readme to correctly reflect no-commit-to-branch args --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f66e7d19..ceb10dbe 100644 --- a/README.md +++ b/README.md @@ -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 ]` 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. From 3aa6c641d2e7fc62fdcd1fffb673608b42e2535c Mon Sep 17 00:00:00 2001 From: Anthony Sottile Date: Wed, 10 Oct 2018 11:15:13 -0700 Subject: [PATCH 2/2] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ceb10dbe..f7f8d921 100644 --- a/README.md +++ b/README.md @@ -82,8 +82,8 @@ 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: ['staging', 'master']` to set the branch. `master` is the - default if no argument is set. + - Use `args: [--branch, staging, --branch, 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. - `pyflakes` - Run pyflakes on your python files.