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.

16 lines
358 B

#!/usr/bin/env bash
# stub pre-commit hook
# just a runner for the real pre-commit script
# if script cannot be found, exit without error
# (to not block local commits)
set -e
REPO_ROOT_DIR="$(git rev-parse --show-toplevel)"
PRE_COMMIT_SCRIPT="${REPO_ROOT_DIR}/config/hooks/pre-commit"
if [ -f $PRE_COMMIT_SCRIPT ]; then
source $PRE_COMMIT_SCRIPT
fi