blob: 548925b0d59abe5a4a5571e990e4100228ff54ac (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#!/bin/sh
# User-level pre-commit. No global checks — exists purely so that
# `<repo>/.githooks/pre-commit` gets picked up automatically without
# the project needing to override core.hooksPath. If there is no
# per-repo hook this is a no-op.
#
# Bypass: git commit --no-verify
set -eu
# shellcheck source=./_dispatch.sh
. "${0%/*}/_dispatch.sh"
dispatch_repo_hook pre-commit "$@"
exit 0
|