#!/usr/bin/env bash
# Copyright 2026 Petri Koistinen. Licensed under the Apache License, Version 2.0.

# Refuses any push while the lint gate fails. Same command as pre-commit:
# Scripts/lint.sh. `git commit --no-verify` does not skip this.
#
# Activate once per clone:
#   git config core.hooksPath Scripts/githooks

set -euo pipefail
cd "$(git rev-parse --show-toplevel)"
Scripts/lint.sh
