mirror of
https://github.com/samba-team/samba.git
synced 2025-03-30 06:50:24 +03:00
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>
This commit is contained in:
parent
289b7a1595
commit
2e2d2eaa10
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user