Add PWD to prepare-commit

Running using non Cygwin git (Faster on Win) will return a differnt path format
to cygwin style. So just make sure scripts is in path so everything else
works.
This commit is contained in:
Nathan Woodrow 2017-12-11 13:51:42 +10:00
parent 3d1d82e7d2
commit 7037c2936b

View File

@ -16,7 +16,7 @@
TOPLEVEL=$(git rev-parse --show-toplevel)
PATH=$TOPLEVEL/scripts:$PATH
PATH=$TOPLEVEL/scripts:$PATH:$PWD/scripts
if ! tty -s && [[ "$0" =~ /pre-commit ]]; then
exec </dev/tty