Local hook check was changing exit code of hooks

Thanks to @mikeburns