-
-
Notifications
You must be signed in to change notification settings - Fork 837
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
init-templatedir installing hooks to wrong directory #1720
Comments
Ahah, so the first part of this is that the cygwin check relies on being in a git repo and it is only run on windows -- that's why it only was failing on windows and why I didn't notice the regression there As for the other components here, If we try with
|
I was trying to use the init-templatedir functionality of pre-commit and ran into a weird problem:
Using Windows 10, pre-commit 2.9.2, git version 2.29.2.windows.1
I followed the example on the pre-commit.com website and used:
It wants me to be in a git repository (I thought you prevented this with da80cc6).
So i switched to a git repository and rerun
the hooks aren't installed in the stated directory.
Based on the warnings it looks like pre-commit isn't resolving the ~ correctly, or did I miss sth.?
returns ~/.git-template
The text was updated successfully, but these errors were encountered: