Some checks failed
Security / Security check (push) Failing after 1s
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>
18 lines
608 B
Bash
Executable file
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."
|