wafsamba: add support git worktree to vcs_dir_contents()
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 10:36:10 +0000 (10:36 +0000)
commit87b8e7f39be6b9b513ed97a150fe814d35108d4c
tree7604189ec3010b05562a803d6c6bc6c8e6c051b7
parent25f3cb8c9733fb4b667ca2eb59ce3aa70b2b9c86
wafsamba: add support git worktree to vcs_dir_contents()

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

Note we could also use 'git rev-parse --show-toplevel', but that's
a patch for another day.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
(cherry picked from commit 2e2d2eaa10499537c9af07dd866ac8e613c3da02)
buildtools/wafsamba/samba_dist.py