mirror of
https://github.com/harvard-edge/cs249r_book.git
synced 2026-03-11 17:49:25 -05:00
- book/tools/git-hooks/pre-commit: runs pre-commit run --all-files - setup.sh: one-time config (git config core.hooksPath) - Ensures local commits pass same checks as CI
7 lines
284 B
Bash
Executable File
7 lines
284 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# One-time setup: point git to hooks that run pre-commit on all files (matches CI).
|
|
set -e
|
|
cd "$(git rev-parse --show-toplevel)"
|
|
git config core.hooksPath book/tools/git-hooks
|
|
echo "✅ Git hooks configured. Commits will run pre-commit on all files (same as CI)."
|