Closed
Description
GIT_DIR=${GIT_DIR:-$(dirname $0)}
for hook in ${GIT_DIR}/hooks/${hookname}.d/*; do
if GIT_DIR
is not set then that first line evaluates to the hooks
directory containing the script, and thus the 2nd line evaluates to .../hooks/hooks/...
the script should read:
GIT_DIR=${GIT_DIR:-$(dirname $0)/..}
for hook in ${GIT_DIR}/hooks/${hookname}.d/*; do