You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

9 lines
343 B

4 years ago
  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. DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
  6. HOOKS_DIR="${DIR}/../.hooks"
  7. git config core.hooksPath "$HOOKS_DIR"