tg: improve handling of configured core.hooksPath
commit0496e05eb4f85b9f80f25d59e440ff4b089c5731
authorKyle J. McKay <mackyle@gmail.com>
Tue, 2 Jan 2018 06:16:48 +0000 (1 22:16 -0800)
committerKyle J. McKay <mackyle@gmail.com>
Tue, 2 Jan 2018 06:16:48 +0000 (1 22:16 -0800)
tree07d26abf83e11d3542d9892ec29125ccb12bc919
parentbfe118c8a8fcd37c45c7fdb21c22dc476250f276
tg: improve handling of configured core.hooksPath

Since Git v2.9.0 there is support for a "core.hooksPath" config
item, but the implementation semantics are an abomination.

Improve the way TopGit deals with such nasties and add some
tests specifically for the evil core.hooksPath setting.

Signed-off-by: Kyle J. McKay <mackyle@gmail.com>
t/t1062-hookspath.sh [new file with mode: 0755]
tg.sh