gitcmds: honor core.hooksPath
commit988142123f34c4f08d0fc3b18758b400f1a8ec23
authorDavid Aguilar <davvid@gmail.com>
Sat, 13 Mar 2021 21:44:27 +0000 (13 13:44 -0800)
committerDavid Aguilar <davvid@gmail.com>
Sat, 13 Mar 2021 21:47:11 +0000 (13 13:47 -0800)
treee2dcb61a01440c37812e149bc06d5a61e06b3f41
parent640a5b3a32f154d8acfedb586ed5ff7568f8ba72
gitcmds: honor core.hooksPath

Use the GitConfig.hooks_path() API to get the path to the git hooks
directory.  This makes the LFS detection and the commit message hooks
use the configured path.

Closes #1118
Signed-off-by: David Aguilar <davvid@gmail.com>
CHANGES.rst
cola/gitcmds.py
cola/models/main.py
share/doc/git-cola/git-cola.rst