On Wed, Feb 23, 2011 at 15:13, Janne Hellsten <
jjhe...@gmail.com> wrote:
> After playing with the patchset-created hook a bit today, it seems that a
> change upload will be accepted to Gerrit regardless of the hook error code.
> It'd be useful to be able to return an error from the Gerrit hook to reject
> a change before it goes into Gerrit.
> Is it possible to reject a "repo upload"/"git push refs/for" based on the
> exit code of patchset-created hook?
Nope. Hooks run after-the-fact on a background thread.