#!/bin/sh
# Before every commit, run checks that take seconds: formatting, go vet, unit
# tests, and script syntax, all through `make check`. VMs belong in pre-push.
#
# This checks the working tree, not only staged changes.
# `git commit --no-verify` skips it.

set -eu
cd "$(git rev-parse --show-toplevel)"

exec make check
