mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-06-19 13:21:46 +00:00
13 lines
369 B
Bash
Executable File
13 lines
369 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -e
|
|
|
|
HOOKS_DIR="$(cd "$(dirname "$0")" && pwd)"
|
|
GIT_HOOKS_DIR="$(git rev-parse --show-toplevel)/.git/hooks"
|
|
|
|
cp "$HOOKS_DIR/pre-commit" "$GIT_HOOKS_DIR/pre-commit"
|
|
# cp "$HOOKS_DIR/pre-push" "$GIT_HOOKS_DIR/pre-push"
|
|
chmod +x "$GIT_HOOKS_DIR/pre-commit" "$GIT_HOOKS_DIR/pre-push"
|
|
# chmod +x "$GIT_HOOKS_DIR/pre-push"
|
|
|
|
echo "Git hooks installed."
|