Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v1.2.1, no-commit-to-branch, error: unrecognized arguments: .pre-commit-config.yaml #268

Closed
dongyuzheng opened this issue Feb 24, 2018 · 2 comments
Labels

Comments

@dongyuzheng
Copy link

Ran pre-commit autoupdate updating v1.2.0 to v1.2.1

Don't commit to branch...................................................Failed
hookid: no-commit-to-branch

usage: no-commit-to-branch [-h] [-b BRANCH]
no-commit-to-branch: error: unrecognized arguments: .pre-commit-config.yaml
@asottile asottile added the bug label Feb 24, 2018
@asottile
Copy link
Member

Indeed, I can reproduce this as well -- it's a bug with the configuration -- I'll get a fix for that!

$ git commit -m 'foo'
[INFO] Initializing environment for https://github.com/pre-commit/pre-commit-hooks.
[INFO] Installing environment for https://github.com/pre-commit/pre-commit-hooks.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
Don't commit to branch...................................................Failed
hookid: no-commit-to-branch

usage: no-commit-to-branch [-h] [-b BRANCH]
no-commit-to-branch: error: unrecognized arguments: .pre-commit-config.yaml

@asottile
Copy link
Member

This is fixed in v1.2.1-1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants