Inaccurate documentation for core.hooksPath?
- From
- Mark Boyd - Q2AAAA <mark.boyd@gsa.gov>
- Date
- May 23, 2024, 19:36 UTC
- Message-ID
- <CABBKgan9hLme+9WTNNVrZXxqO4-VRGiC3RLQgfKFUHAy3QZvDA@mail.gmail.com>
Hello,
This documentation says that git only looks for hooks in the configured core.hooksPath: https://github.com/git/git/blob/master/Documentation/config/core.txt#L499-L504
However, in my testing, git will run both hooks located in the core.hooksPath directory and in the local git repo hooks directory (.git/hooks by default). Observation of this behavior is documented in https://github.com/cloud-gov/caulking/issues/37.
Is the behavior I'm seeing the actually expected behavior of git? Or are we somehow relying on an edge-case or buggy behavior?
Thanks, Mark