Print hook stdout/stderr in case of a non-zero exit code

Prior to this change the hook output was only printed when the logging
level was at least DEBUG. However, when a hook exits with an error we
need to read the hook output in order to get more details about the
error.

Release-Notes: Print hook stdout/stderr in case of a non-zero exit code
Change-Id: I24b9f69c9faea561d7fce0b3818801dd64852729
1 file changed
tree: a2934ce98ff66673d623a61b19fbe5637f9f720e
  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.