describe your issue
When I try to commit from visual studio 2019, I get the following message:
/usr/bin/env: ‘bash’: No such file or directory
I have confirmed that it works from vscode and command prompt.
I rewrote the .git/hooks/pre-commit to below and it worked.
As far as I can see, visual studio git hooks only support sh.
Are you aware of this problem?
thank you.
pre-commit --version
pre-commit 2.16.0
.pre-commit-config.yaml
repos:
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v13.0.0
hooks:
- id: clang-format
~/.cache/pre-commit/pre-commit.log (if present)
No response
describe your issue
When I try to commit from visual studio 2019, I get the following message:
I have confirmed that it works from vscode and command prompt.
I rewrote the
.git/hooks/pre-committo below and it worked.As far as I can see, visual studio git hooks only support
sh.Are you aware of this problem?
thank you.
pre-commit --version
pre-commit 2.16.0
.pre-commit-config.yaml
~/.cache/pre-commit/pre-commit.log (if present)
No response