-
Notifications
You must be signed in to change notification settings - Fork 149
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
ggshield install --mode global
fails on Windows
#972
Labels
Comments
mherzberg
added
status:new
This issue needs to be reviewed
type:bug
Something isn't working
labels
Oct 4, 2024
Good catch, this is indeed a regression of 1.32.1. Looking into it. |
agateau-gg
added
status:confirmed
This issue has been reviewed and confirmed
and removed
status:new
This issue needs to be reviewed
labels
Oct 10, 2024
I have similar issue with the brew installed version of ggshield 1.32.1 running the very same command
|
Could we get a release with this fix? This has been pretty impacting for us. Or is there a "last known good" version? |
We just released 1.32.2, which fixes this issue. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Environment
Describe the bug
ggshield install --mode global
fails to install the pre-commit hook.I suspect this is because of changes introduced through this PR, which added
env["GIT_CONFIG_GLOBAL"] = os.getenv("GG_GIT_CONFIG", "")
among other git config related changes. The PR comment "Set the appropriate environment variables to ignore any git configuration." appears to assume the code is only used for read operations on the config file. However, as seen in the stack trace below, the code is also executed when settingcore.hooksPath
.Steps to reproduce:
ggshield install --mode global
on a Windows machine.Actual result:
Version 1.32.1 fails to install the pre-commit hook:
Expected result:
Version 1.32.0 installed fine, I expect version 1.32.1 to also install fine:
The text was updated successfully, but these errors were encountered: