code: func (c *Configuration) HookDir() (string, error) {
  	if git.IsGitVersionAtLeast("2.9.0") {
  		hp, ok := c.Git.Get("core.hooksPath")
  		if ok {
  			return tools.ExpandPath(hp, false)
  		}
  	}
  	return filepath.Join(c.LocalGitStorageDir(), "hooks"), nil
  }
docs: // HookDir returns the location of the hooks owned by this repository. If the
  // core.hooksPath configuration variable is supported, we prefer that and expand
  // paths appropriately.