copilot test

This commit is contained in:
Martin Sukany
2025-11-13 11:37:28 +01:00
parent 7ef8e20564
commit 9a7ffdeb2c
12 changed files with 356 additions and 2 deletions

14
scripts/install_hooks.sh Executable file
View File

@@ -0,0 +1,14 @@
#!/usr/bin/env bash
set -eu
# Install repository-local git hooks by setting core.hooksPath
REPO_ROOT="$(cd "$(dirname "$0")/.." && pwd)"
HOOKS_DIR="$REPO_ROOT/.githooks"
if [ ! -d "$HOOKS_DIR" ]; then
echo "No .githooks directory found in repo root: $HOOKS_DIR"
exit 1
fi
git config core.hooksPath "$HOOKS_DIR"
echo "Installed git hooks path: $HOOKS_DIR"
echo "You can revert with: git config --unset core.hooksPath"