aboutsummaryrefslogtreecommitdiff
path: root/bdep-util/git-pre-commit.in
blob: 27e76f391716416bfa6e8a34cca8ef58f6ce5264 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#! /usr/bin/env bash

# file      : bdep-util/git-pre-commit.in
# license   : MIT; see accompanying LICENSE file

# Execute various pre-commit scripts in a git repository.
#
trap 'exit 1' ERR

scr_dir="$(dirname "$(realpath "${BASH_SOURCE[0]}")")"

# Run each hook checking the exit status and bailing out if unsuccessful. We
# can just exec the last one.
#
"$scr_dir/bdep-git-pre-commit-version-check"

exec "$scr_dir/bdep-git-pre-commit-copyright-check"