You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ggshield install -mode=local does not honor core.hookspath
And even with core.hookspath unset it will install the hooks in the current directory rather than in the repo root.
Steps to reproduce:
cd to a sub-directory
Run command ggshield install --mode=local -t pre-commit
core.hookspath not being honored
git config set core.hookspath=githooks
(optionally) cd to a sub-directory
Run command ggshield install --mode=local -t pre-commit
Actual result:
ls .git/hooks
will show the hook
Expected result:
'ls $(git rev-parse --show-toplevel)/.git/hooks`
should show the hook
or if core.hookspath is set
ls $(git rev-parse --show-toplevel)/githooks
should show the hook
If applicable, add logs or screenshots to help explain your problem.
The text was updated successfully, but these errors were encountered:
Environment
Describe the bug
ggshield install -mode=local does not honor core.hookspath
And even with core.hookspath unset it will install the hooks in the current directory rather than in the repo root.
Steps to reproduce:
ggshield install --mode=local -t pre-commit
core.hookspath not being honored
ggshield install --mode=local -t pre-commit
Actual result:
ls .git/hooks
will show the hook
Expected result:
'ls $(git rev-parse --show-toplevel)/.git/hooks`
should show the hook
or if core.hookspath is set
ls $(git rev-parse --show-toplevel)/githooks
should show the hook
If applicable, add logs or screenshots to help explain your problem.
The text was updated successfully, but these errors were encountered: