Describe the bug
darker...................................................................Failed
- hook id: darker
- exit code: 123
ERROR:darkgraylib.git:fatal: bad revision 'HEAD'
To Reproduce
Steps to reproduce the behavior:
mkdir test-darker && cd test-darker
git init
- add
.pre-commit-config.yaml with darker configured
git add . && git commt -m 'will fail when the first commit'
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add copy/paste the output or attach a screenshots to help explain your problem.
Environment (please complete the following information):
- pre-commit==4.2.0
- darker==2.1.1
- black==25.1.0
Additional context
Add any other context about the problem here.
Describe the bug
To Reproduce
Steps to reproduce the behavior:
mkdir test-darker && cd test-darkergit init.pre-commit-config.yamlwith darker configuredgit add . && git commt -m 'will fail when the first commit'Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add copy/paste the output or attach a screenshots to help explain your problem.
Environment (please complete the following information):
Additional context
Add any other context about the problem here.