Resolve relative hooks.path against $site_path, not cwd of the process

When hooks.path was given as relative path it got resolved against the
current working directory of the Gerrit process. While it may often be
the case that the current working directory of Gerrit process is the
$site_path, it is not guaranteed and, depending how Gerrit is started,
it may be some other directory. Most, if not all, of the relative paths
in gerrit.config are resolved against the $site_path and we should do
the same for the hooks.path.

Release-Notes: Resolve relative hooks.path against $site_path
Change-Id: Ie72c0657393e1dfe078155e27edbd4c0412892e6
2 files changed
tree: febd7ee67889ef5714c4cf930e32cc2a4c636dd3
  1. src/
  2. .gitignore
  3. BUILD
  4. LICENSE
  5. README.md
README.md

Hooks plugin

Gerrit does not support the standard server-side git hooks in the repositories it manages.

This plugin adds support for custom hooks that can be run instead. Refer to the configuration documentation and list of supported hooks for details.