6 lines
223 B
Bash
6 lines
223 B
Bash
|
|
#!/bin/sh
|
||
|
|
# Install as .git/hooks/pre-commit; rejects generated/evidence-only auto commits too.
|
||
|
|
set -eu
|
||
|
|
REPO_ROOT="$(git rev-parse --show-toplevel)"
|
||
|
|
exec python3 "$REPO_ROOT/scripts/check_generated_only_commit.py" --staged
|