chain-studio/tools/install-hooks.sh
flemming-it c27bb29ba0
Some checks failed
Security / Security check (push) Failing after 1s
docs: old product name F∆I Platform -> Ch∆In + contact chain@flemming.ai
The old 'F∆I Platform' product name and platform@flemming.ai contact
survived in docs/NOTICE/descriptions/help text; the product is Ch∆In and
the contact is chain@flemming.ai. Generic 'cross-platform/platform-native'
left untouched.

Signed-off-by: flemming-it <stefan.a.flemming@googlemail.com>
2026-06-16 10:14:30 +02:00

18 lines
608 B
Bash
Executable file

#!/usr/bin/env bash
# Ch∆In — one-time hook activation for this clone.
# Points git at the versioned `.githooks/` directory so pre-commit and
# commit-msg checks run on every commit (including amends and rebases).
#
# Run once after cloning:
# bash tools/install-hooks.sh
set -euo pipefail
cd "$(git rev-parse --show-toplevel)"
git config core.hooksPath .githooks
chmod +x .githooks/* tools/security/*.sh tools/install-hooks.sh
echo "✓ core.hooksPath = .githooks"
echo " Active hooks:"
ls -1 .githooks/ | sed 's/^/ /'
echo ""
echo "Next commit will be gated by tools/security/check-staged.sh."