hook: fix GIT_DIR in delegate script
$PWD gives us the absolute path to the git repository without using thebash builtin.Signed-off-by: oppiliappan <me@oppi.li>
oppi.li 6 months ago 2cd1fe9a 67887f7c
··· 141 141 data=$(cat) 142 142 exitcodes="" 143 143 hookname=$(basename $0) 144 144 - GIT_DIR=${GIT_DIR:-$(dirname $0)/..} 144 144 + GIT_DIR="$PWD" 145 145 146 146 for hook in ${GIT_DIR}/hooks/${hookname}.d/*; do 147 147 test -x "${hook}" && test -f "${hook}" || continue