wscript: fix installing pre-commit with 'git worktree'
authorStefan Metzmacher <metze@samba.org>
Wed, 11 Aug 2021 11:26:41 +0000 (13:26 +0200)
committerStefan Metzmacher <metze@samba.org>
Thu, 12 Aug 2021 08:56:13 +0000 (08:56 +0000)
commit8858cf72af1cc15784749e58f184559a839dd4ef
tree287660524e7e41a7d11880ec9d9f5367cd6e8347
parentc7f85146cb50795afcbb1c607e87d163d241c79a
wscript: fix installing pre-commit with 'git worktree'

.git is not always a directory, with 'git worktree' it's a file.

'git rev-parse --git-path hooks' is the generic way to find the
patch for the githooks.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Thu Aug 12 08:56:13 UTC 2021 on sn-devel-184
wscript