Add git pre-commit hook for task enforcement

This commit is contained in:
2026-06-13 17:55:39 -04:00
parent 70c37cfae9
commit 2cd04974e0
3 changed files with 103 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
#!/bin/bash
# Install git hooks for the automaton framework.
set -e
HOOKS_DIR="$(cd "$(dirname "$0")/.." && pwd)/.git/hooks"
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
echo "Installing git hooks..."
cp "$SCRIPT_DIR/pre-commit-hook.sh" "$HOOKS_DIR/pre-commit"
chmod +x "$HOOKS_DIR/pre-commit"
echo "Installed: $HOOKS_DIR/pre-commit"
echo "Done."