wscript: fix installing pre-commit with 'git worktree'
commitbeaae4c5d671f23ba5a844f7dc66e93538408ff7
authorStefan Metzmacher <metze@samba.org>
Wed, 11 Aug 2021 11:26:41 +0000 (11 13:26 +0200)
committerStefan Metzmacher <metze@samba.org>
Wed, 27 Oct 2021 22:37:08 +0000 (27 22:37 +0000)
treeb0bb063f3e7391b710aa5da7619cb271dcf6e674
parent3ba31fd4de81421c3f6073a93dade8af8de071d8
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)
wscript