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 11:49:18 +0000 (11:49 +0000)
commita8b40f15f907cef89075dba368ec611e4cdbb099
treeb19323232c7d40c2271162f7c3ad6b82512d297b
parente393635ab82dbca1d6fee9279a81e274e743b118
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

(cherry picked from commit 8858cf72af1cc15784749e58f184559a839dd4ef)

Autobuild-User(v4-14-test): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(v4-14-test): Thu Aug 12 11:49:18 UTC 2021 on sn-devel-184
wscript