blob: 45f13f0d6c2c48ecada639a6be67453dcda0949d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#!/bin/sh
# User-level post-commit. No global checks — exists purely so that
# `<repo>/.githooks/post-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. post-commit's exit status is ignored
# by git, but we still propagate it for clarity.
set -eu
# shellcheck source=./_dispatch.sh
. "${0%/*}/_dispatch.sh"
dispatch_repo_hook post-commit "$@"
exit 0
|