diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2020-08-06 23:32:13 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2020-08-12 12:33:41 +0300 |
commit | 768727f37afa6fbb5082833a4c14c8134ec42122 (patch) | |
tree | 8c7b3d85f9735d8585781a45f9e61b15fdaa3530 /bdep-util/git-pre-commit.in | |
parent | 4c61819dedbc3547bf3f352809ecfb6a95ab8753 (diff) |
Add implementation
Diffstat (limited to 'bdep-util/git-pre-commit.in')
-rw-r--r-- | bdep-util/git-pre-commit.in | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/bdep-util/git-pre-commit.in b/bdep-util/git-pre-commit.in new file mode 100644 index 0000000..27e76f3 --- /dev/null +++ b/bdep-util/git-pre-commit.in @@ -0,0 +1,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" |