MeshChatX/scripts/ci/install-git-hooks.sh

10 lines
262 B
Bash
Executable file

#!/bin/sh
# Point this clone at .githooks/ (tracked git hooks).
set -eu
ROOT="$(CDPATH='' cd -- "$(dirname "$0")/../.." && pwd)"
cd "$ROOT"
git config core.hooksPath .githooks
chmod +x .githooks/pre-commit
echo "install-git-hooks.sh: core.hooksPath=.githooks"