#!/bin/sh
# Antes de cada commit: que no vaya nada del juego, del firmware ni personal (tools/comprobar_repo.py).
# Se activa con: git config core.hooksPath .githooks   (Instalar.cmd lo hace solo)
PY="$(command -v python3 || command -v python || true)"
if [ -z "$PY" ]; then
    echo "pre-commit: falta Python; no se ha podido comprobar el commit" >&2
    exit 1
fi
exec "$PY" tools/comprobar_repo.py --preparados
