hooks/pre-commit: make it work properly in test environment
commitd22ab4545ed096141adbf0140f0d4fa7e1d0b812
authorKyle J. McKay <mackyle@gmail.com>
Fri, 26 May 2017 17:04:29 +0000 (26 10:04 -0700)
committerKyle J. McKay <mackyle@gmail.com>
Fri, 26 May 2017 17:04:29 +0000 (26 10:04 -0700)
tree09a8a60f5f5e3ff1df834551ab58fe839436bf94
parenta6b01426c095393236f8223cd42a757f8cd004b0
hooks/pre-commit: make it work properly in test environment

When running tests, the various tg directories are redirected back
to the directory of the freshly-built tg.

Make sure TG_INST_HOOKSDIR points at the bin-wrappers subdirectory
rather than the directory containing the tg executable itself.

Add a wrapper for the pre-commit hook that sets TG_INST_BINDIR
to the directory of the freshly-built tg and make sure that
the pre-commit hook now groks a TG_INST_BINDIR setting.

Signed-off-by: Kyle J. McKay <mackyle@gmail.com>
Makefile
Makefile.mak
hooks/pre-commit.sh