2021-02-08 12:36:02 +00:00
|
|
|
#!/bin/sh
|
|
|
|
hook=$(basename $0)
|
2022-05-27 08:50:02 +00:00
|
|
|
|
2021-09-14 08:50:36 +00:00
|
|
|
if [ -z "$GIT_DIR" ]
|
|
|
|
then
|
|
|
|
GIT_DIR=$(git rev-parse --show-toplevel)/.git
|
|
|
|
fi
|
2022-05-27 08:50:02 +00:00
|
|
|
|
2021-02-08 12:36:02 +00:00
|
|
|
if [ -f $GIT_DIR/hooks/$hook ]
|
|
|
|
then
|
|
|
|
echo Running project-level hook: $GIT_DIR/hooks/$hook
|
2022-05-27 08:50:02 +00:00
|
|
|
$GIT_DIR/hooks/$hook $@
|
2021-02-08 12:36:02 +00:00
|
|
|
fi
|