Skip to main content

resolve_hooks_dir

Function resolve_hooks_dir 

Source
pub fn resolve_hooks_dir(root: &Path, value: &str) -> PathBuf
Expand description

core.hooksPath, resolved the way git resolves it: an absolute value is used as-is, a relative one is relative to the repository, not the cwd.

Resolving against the cwd would write a chainer into whatever directory the caller happened to be in.