huggingface / huggingface_hub

The official Python client for the Huggingface Hub.
https://huggingface.co/docs/huggingface_hub
Apache License 2.0
1.83k stars 471 forks source link

Fix windows tests (git security update) #2296

Closed Wauplin closed 1 month ago

Wauplin commented 1 month ago

3 git tests are currently failing on the Windows CI with error:

fatal: active post-checkout hook found during git clone:

I seems to be due to a recent git security update that is not yet handled by git+lfs. See:

In the meantime a solution is to disable this new security feature by setting GIT_CLONE_PROTECTION_ACTIVE=false in the Windows test env. This only affects the CI, not the package itself.

Expectation

CI should be green :)

HuggingFaceDocBuilderDev commented 1 month ago

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

Wauplin commented 1 month ago

Merging it now since CI is green + it only affects tests.