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
Stalls on hooks checkout #1496
Comments
have you tried the commands separately? are you behind some sort of proxy? |
I have, and everything clones/checks out normally |
on 18.04 it shouldn't be taking the shallow clone, unless you have updated git out-of-band it's not using can you try this?
|
also check |
I think I potentially see an issue. When I am checking out FETCH_HEAD it is trying to run pre-commit and install flake8 which also hangs. |
git version 2.24.1 |
huh that's weird, how do you have checkout hooks set up ? |
I have pre-commit using the global templates, therefore it gets applied to all repositories as we have hundreds that will be using it in the near future. |
hmmmmmm ok so pre-commit is calling pre-commit is calling pre-commit is calling pre-commit 🤔 |
Yes, I just started seeing this when I upgraded to 2.4.0. I don't know what the previous version was. |
If I remove the post-checkout hook from the template dir I am able to prevent this from hanging. |
my guess is you were using something <2.2 which didn't have support for post-checkout? |
can you try the patch in #1497 |
That works for me. I have seen installs that put the hooks in the core.hookspath and it doesn't address that configuration. |
|
When trying to use some hook repositories I am getting hangs while fetching hooks. Tried pre-commit clean and rm -rf ~/.cache/pre-commit, but nothing changed. This is happening on both Windows 10 and Ubuntu 18.04.4 LTS.
pre-commit.log
Added to ~/.local/lib/python3.6/site-packages/pre_commit/util.py line 143
.pre-commit-config.yaml
The text was updated successfully, but these errors were encountered: