forked from tangled.org/core
Monorepo for Tangled

hook: fix GIT_DIR in delegate script

$PWD gives us the absolute path to the git repository without using the
bash builtin.

Signed-off-by: oppiliappan <me@oppi.li>

authored by oppi.li and committed by Tangled b5fe3db4 68650651

Changed files
+1 -1
hook
+1 -1
hook/setup.go
··· 141 141 data=$(cat) 142 142 exitcodes="" 143 143 hookname=$(basename $0) 144 - GIT_DIR=${GIT_DIR:-$(dirname $0)/..} 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