commit | 0fe206dea9f652c3b087fb65c5efc4ac3f0e370f | [log] [tgz] |
---|---|---|
author | David Pursehouse <dpursehouse@collab.net> | Wed May 16 16:12:52 2018 +0900 |
committer | David Pursehouse <dpursehouse@collab.net> | Thu May 17 19:58:34 2018 +0900 |
tree | 5571ebfe774129cb02f75ac9ea855395e609926b | |
parent | 951496a53c73d34143be8622410fc90cb2e715cb [diff] |
Add submit hook The submit hook is invoked synchronously when a change is submitted. If it returns a non-zero exit status, a MergeValidationException is thrown and the submit is prevented. This adds back the ability to block submit by a hook. Previously this was possible with the ref-update hook until its purpose was changed and only invoked on ref updates such as branch creation, deletion, or fast- forward by direct push. Change-Id: Ie4efb90df645ecac01638b23305dc2ffb547192e
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.