arnaucube
arnaucube/ark-curves-cherry-pickedPublic Self-hosted repository
ark-curves-cherry-picked/scripts/install-hook.sh
scripts/install-hook.shRaw
1#!/bin/env bash
2# This script will install the provided directory ../.hooks as the hook
3# directory for the present repo. See there for hooks, including a pre-commit
4# hook that runs rustfmt on files before a commit.
5
6DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
7HOOKS_DIR="${DIR}/../.hooks"
8
9git config core.hooksPath "$HOOKS_DIR"