diff options
| author | Adam Mathes <adam@adammathes.com> | 2026-02-15 09:25:28 -0800 |
|---|---|---|
| committer | Adam Mathes <adam@adammathes.com> | 2026-02-15 09:25:28 -0800 |
| commit | 01c7931a6b523c28d856ba05d2d6cd6ac7cc01b2 (patch) | |
| tree | 1b28fd89b8bebd899128697586b91171edb2c9dd /scripts/install-hooks.sh | |
| parent | 52b5885c87ae4f97c1208fefd98f94e6b5af0076 (diff) | |
| download | neko-01c7931a6b523c28d856ba05d2d6cd6ac7cc01b2.tar.gz neko-01c7931a6b523c28d856ba05d2d6cd6ac7cc01b2.tar.bz2 neko-01c7931a6b523c28d856ba05d2d6cd6ac7cc01b2.zip | |
Add local git hooks to run 'make check' before push
Diffstat (limited to 'scripts/install-hooks.sh')
| -rwxr-xr-x | scripts/install-hooks.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/scripts/install-hooks.sh b/scripts/install-hooks.sh new file mode 100755 index 0000000..6acf800 --- /dev/null +++ b/scripts/install-hooks.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +HOOKS_DIR=$(git rev-parse --git-path hooks) +SCRIPT_DIR=$(dirname "$0") + +echo "Installing git hooks to $HOOKS_DIR..." + +cp "$SCRIPT_DIR/pre-push-hook.sh" "$HOOKS_DIR/pre-push" +chmod +x "$HOOKS_DIR/pre-push" + +echo "Hooks installed successfully." |
