Replies: 1 comment 1 reply
-
|
The shebang will work. Means that |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I need
python3to runprepare-commit-msg(notably without a file extension) but it's a python file (see https://github.com/mfts/tea-demos/blob/feat/ai-commit-msg/ai-commit-msg/prepare-commit-msg.py).This file gets placed in
.git/hooksdirectory of my current directory and executes ongit commit.I don't want to change the user's behaviour of forcing the user to do something like
But I want python in the environment whenever
git commitruns in that directory.Something else I tried: changing the shebang in Line 1 on prepare-commit-msg to
#!/usr/bin/env -S tea python3unfortunately, that results in this error message
Beta Was this translation helpful? Give feedback.
All reactions