Failures in hooks surface as Internal errors
Failures in hooks can be expected in certain situations, like when the customer adds pre-commit hooks for checking the commit message when updating the refs. However, Gitaly simply raises an error and this propagates to the RPC layer as an INTERNAL
error. Whereas these kinds of errors should probably be categorized as INVALID_ARGUMENT
and handled by the clients correspondingly.