• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/usr/bin/env bash
2
3# stub pre-commit hook
4# just a runner for the real pre-commit script
5# if script cannot be found, exit without error
6# (to not block local commits)
7
8set -e
9
10REPO_ROOT_DIR="$(git rev-parse --show-toplevel)"
11PRE_COMMIT_SCRIPT="${REPO_ROOT_DIR}/config/hooks/pre-commit"
12
13if [ -f $PRE_COMMIT_SCRIPT ]; then
14    source $PRE_COMMIT_SCRIPT
15fi
16