diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2020-08-12 13:11:00 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2020-08-12 13:11:00 +0300 |
commit | 97d33a602e4c0b5a65ac36543e22f2fddb7ecdbc (patch) | |
tree | 601ca4604afc039df616e8955fd0825c58ca6855 /hooks/pre-commit | |
parent | 8e192a198d03368d22524c8b949eb1bf9625aa70 (diff) |
Move pre-commit hooks to bdep-util project
Diffstat (limited to 'hooks/pre-commit')
-rwxr-xr-x | hooks/pre-commit | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/hooks/pre-commit b/hooks/pre-commit deleted file mode 100755 index 10a97d9..0000000 --- a/hooks/pre-commit +++ /dev/null @@ -1,26 +0,0 @@ -#! /usr/bin/env bash - -# Execute various pre-commit scripts in a git repository. -# -# To enable the hooks globally run: -# -# $ git config --global core.hooksPath <git-project-dir>/hooks -# -# Notes: -# -# - git passes no parameters to this kind of hooks. -# -# - git changes CWD to the git repository root directory for the hook process. -# -# - git command running from inside the hook sees files that should be -# auto-staged due to the -a git-commit option or similar as already staged. -# -trap 'exit 1' ERR - -src_exe="$(realpath "${BASH_SOURCE[0]}")" -src_dir="$(dirname "$src_exe")" - -# Run each hook checking the exit status and bailing out if unsuccessful. We -# can just exec the last one. -# -exec "$src_dir/pre-commit-copyright-check" |