diff options
author | Stefan Metzmacher <metze@samba.org> | 2021-08-11 13:26:41 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2021-08-12 08:07:29 +0000 |
commit | 2e2d2eaa10499537c9af07dd866ac8e613c3da02 (patch) | |
tree | a65b0e6aec2c7a0312dcf81f03118c3c115811e6 /buildtools | |
parent | 289b7a1595ab13a200cfb327604e4b9296fa81e0 (diff) | |
download | samba-2e2d2eaa10499537c9af07dd866ac8e613c3da02.tar.gz |
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>
Diffstat (limited to 'buildtools')
-rw-r--r-- | buildtools/wafsamba/samba_dist.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/buildtools/wafsamba/samba_dist.py b/buildtools/wafsamba/samba_dist.py index c211a94d3db..0218cad6271 100644 --- a/buildtools/wafsamba/samba_dist.py +++ b/buildtools/wafsamba/samba_dist.py @@ -109,7 +109,7 @@ def vcs_dir_contents(path): """ repo = path while repo != "/": - if os.path.isdir(os.path.join(repo, ".git")): + if os.path.exists(os.path.join(repo, ".git")): ls_files_cmd = [ 'git', 'ls-files', '--full-name', os.path.relpath(path, repo) ] cwd = None |