#! /usr/bin/env bash

REPO_ROOT="$(git rev-parse --show-toplevel 2>/dev/null)" || {
  echo "Error: not inside a git repository." >&2
  exit 1
}

git -C "$REPO_ROOT" config core.hooksPath .githooks
