mirror of
https://github.com/samba-team/samba.git
synced 2025-03-12 20:58:37 +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> (cherry picked from commit 2e2d2eaa10499537c9af07dd866ac8e613c3da02)
This commit is contained in:
parent
f834da8726
commit
24c95d2523
@ -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