invalid git config core.hooksPath #405
erikwilson
started this conversation in
Bugs
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
This is a report for trunk cli, which breaks the git config in containerized environments.
For example, if I have an action enabled like:
And then run
trunk fmt
in a devcontainer, our.git/config
is modified with acore.hooksPath
of/home/vscode/.cache/trunk/repos/b0e0633cbf1fa65aae546b22d8e73614/git-hooks
, which is invalid outside of the container. From the host anygit
actions will not execute hooks as the auto-configured directory is an absolute path outside of the mounted workspace.Ideally the hooks would be installed in a local directory relative to the project.
It would also be nice to have an option allowing us to install the hooks to the default directory, rather than have
core.hooksPath
auto-configured.Beta Was this translation helpful? Give feedback.
All reactions